Carriage return in mex files
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.
.
Relevant Pages
- Re: Cant locate mex file (OSX)
... > Hi Arwel, ... you will need to build a 64-bit version of> your MEX file. ... > You can check the architecture of the running instance of MATLAB by> selecting About MATLAB from the MATLAB application menu in at the top> ofthe screen, or by typing 'arch' inside MATLAB. ... The mex file does exist>> in this directory, and works when called in an identical way on other>> machines. ... (comp.soft-sys.matlab) - Re: sending strings from C using Engine
... complete" to the end of whatever is in str. ... It will never contain any MATLAB output to print. ... The console output gets buffered and doesn't print when you ... flush the output buffer after every print, ... (comp.soft-sys.matlab) - Re: Question about new Matlab coder
... >>> whatever Matlab might generate through the coder. ... > case the m-file was still much faster than the generated mex file. ... Using emlmex to speed up FFT/IFFT is not generally possible. ... emlmex generates a generic radix-2 FFT/IFFT and then compiles it with your C compiler. ... (comp.soft-sys.matlab) - Re: sending strings from C using Engine
... char *outputTest; ... allocate new memory to hold the concatenated result and ... you end the MATLAB command ... The console output gets buffered and doesn't print when ... (comp.soft-sys.matlab) - Re: Pass structure to MATLAB
... void ReadFromFile(const char *filename, int ArraySize) ... Frame* frame = new Frame; ... // pass frame structure to MATLAB ... Here is a complete working mex file that puts Frame and UShortFrame ... (comp.soft-sys.matlab) |
|