Matlab postpones disp calls when doing demanding calculations why is that?

Posted by Reed Richards on Stack Overflow See other posts from Stack Overflow or by Reed Richards
Published on 2010-04-28T09:41:32Z Indexed on 2010/04/28 9:43 UTC
Read the original article Hit count: 324

Filed under:
|
|

I am implementing an algorithm in Matlab. Among other things it calculates shortest paths etc. so its quite demanding for my old computer. I've put out disp calls through out the program to see what's happening all the time. However when starting on a particulary heavy for loop the disp seemes not to be called until the loop is over even though it comes before the loop. Why is that? I though that Matlab was really linear or am I just choking it with to many calculations and the disp calls get the lowest priority?

© Stack Overflow or respective owner

Related posts about matlab

Related posts about algorithm