MATLAB Answers

Kesni savitri

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?



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)

Adapt it to your needs


Join the 15-year community celebration.

Play games and win prizes!

Learn more
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

MATLAB Academy

New to MATLAB?

Learn MATLAB today!