I am implementing an algorithm in MATLAB. Among other things it calculates the shortest paths etc. so it\'s quite demanding for my old computer. I\'ve put in disp() calls th
I am almost certain it is because of EDT.
That's the function drawnow() is for. See article of Yair Altman for good explanation.
Summary: MATLAB graphics is Java Swing and operations happen on a special thread - Event Dispatch Thread (EDT). Calling drawnow(); flushes event queue and updates figure window.