stdout in MATLAB using fprintf

13 views (last 30 days)
Konstantin
Konstantin on 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

Answers (1)

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

Categories

Find more on MATLAB Coder in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!