How to make progress bar in MATLAB (code in description)
Вставка
- Опубліковано 30 вер 2024
- Wooooot:
figure('units','normalized','position',[.40 .45 .2 .05])
set(gcf,'numbertitle','off','name','calculation in progress...')
set(gcf, 'MenuBar', 'None')
x = 0:0.1:100;
y = 0:0.1:100;
set(gca,'Box','on')
set(gca,'XTickLabel',{'0%','20%','40%','60%','80%','100%'})
set(gca,'YTickLabel',' ')
xlim([0 100])
ylim([0 20])
hold on %drawing part
for ct = 2:1002
line([x(ct-1) x(ct-1)],[0 20])
drawnow
end
hold off
Snd=load('gong.mat');
soundsc(Snd.y);
Hi, I've made a simple example to create progress text on every iteration here : ua-cam.com/video/uu3djkry9rU/v-deo.html
and using progress bar here :
ua-cam.com/video/vfKd7SrNmGQ/v-deo.html
Great that this inspired you a bit :)
So erhalten Sie Ihre Kenntnisse der Physik aus Filmen wie "Interstellar?" You must be a real genius!
No, I get my knowledge from books and university.