From: Taylor on
Hi,
I'm trying to add a progress bar that works fine in any console, but doesn't seem to work in MatLab. It's in a mex file, that calls the following to refresh:

mexEvalString("drawnow;");

However, the carriage return '\r' does not seem to work - I need to return the cursor to the front of the line so that the progress bar continually is written over. I'm using mexPrintf, but it just shows up on successive lines beneath each other. Thanks for any help.
From: Taylor on
In case anyone is interested, I was able to get it to work using '\b'. '\r' doesn't seem to work the same...not sure why. Anyway, '\b' moved the cursor back so it's a workaround.