Tuesday, April 8, 2008

print in matlab to the prompt

Hi, i was searching for a possibility to print something in the prompt from a script without using the function disp. disp allways make a new line, and i wanted to have something printed in a single line. fprintf does it very well. check this example:

for i=1:1:5; fprintf('.'); pause(2);end; fprintf('OK'); disp(' ')

No comments: