stdout in MATLAB using fprintf

13 vues (au cours des 30 derniers jours)
Konstantin
Konstantin le 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

Réponses (1)

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

Catégories

En savoir plus sur MATLAB Coder dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by