Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

How to display the calcution process with progress bar?

Asked by Kesni savitri on 27 May 2013

I make my task with GUI, and to display the result i wait until 1 minute. to monitoring the program running periode , i want make progress bar. How to display the calcution progress with progress bar?

0 Comments

Kesni savitri

Products

No products are associated with this question.

1 Answer

Answer by David Sanchez on 27 May 2013
Accepted answer

Is this what you are looking for?

h = waitbar(0,'Please wait...');
steps = 1000;
for step = 1:steps
    % computations take place here
    waitbar(step / steps)
end
close(h)

Adapt it to your needs

0 Comments

David Sanchez

Contact us