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);

КОМЕНТАРІ • 4

  • @CodeRanger
    @CodeRanger 7 років тому

    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

    • @Mgaak
      @Mgaak  7 років тому

      Great that this inspired you a bit :)

  • @tetragrammaton1255
    @tetragrammaton1255 8 років тому +1

    So erhalten Sie Ihre Kenntnisse der Physik aus Filmen wie "Interstellar?" You must be a real genius!

    • @Mgaak
      @Mgaak  8 років тому

      No, I get my knowledge from books and university.