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)endclose(h)
Best Answer