stdout in MATLAB using fprintf

조회 수: 13 (최근 30일)
Konstantin
Konstantin 2012년 1월 17일
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

답변 (1개)

Andrew Newell
Andrew Newell 2012년 1월 17일
Perhaps this solution would help.

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by