MATLAB: How can i show plotting when mfile is running

plot

I have an infinity loop in my code how can i show plotting when mfile is running? when i stop running then figure window is opend!

Best Answer

drawnow() or pause()