stdout in MATLAB using fprintf

13 Ansichten (letzte 30 Tage)
Konstantin
Konstantin am 17 Jan. 2012
Hi,
i have an application, that starts a matlab process with a batch command: matlab -r mymatlabscript;
After starting the matlab script, the application reads on the process dedicated InputStream for some data of the matlab script.
When writing something via fprintf(1,'data') on stdout in the MATLAB script, it will be displayed in the command window, but there's no data on the InputStream of the application. So now i'm asking myself, if there's a possibility to write in MATLAB under windows direct to stdout. The command window in MATLAB seems not to operate like the command line window generated by normal c, c++ or java applications or am i wrong?
Thanks, Konstantin

Antworten (1)

Andrew Newell
Andrew Newell am 17 Jan. 2012
Perhaps this solution would help.

Kategorien

Mehr zu MATLAB Coder finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by