How can a process bar/wait bar run during a function is running
Ältere Kommentare anzeigen
Hello, am running a code and I want to add a waitbar during a function is running, this function takes a lot of time but the problem is that the waitbar is updating after the function execution.
Here is the code:
h = waitbar(0,'Please wait...');
x1= ode3(F,tspan, xi');
for step = 1:0.008:time
waitbar(step /time)
end
close(h)
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Dialog Boxes finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!