Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Matlab system command produces output on matlab command line
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Dear community,
I am using Matlab's system() command to call an external Program (Praat) to run a (Praat) script. I didn't want Matlab to do anything but that. But after doing the call to system(), an output is produced in my Matlab command line without any meaning
the input to the system command is
praatcommand = ['Praat.exe --run extractPitch.praat.txt "' source '" praatOutputTemp.txt'];
which runs the specified Script in the background on the input file 'source' and outputs data in the specified text file.
Then this happens on my Matlab command line:
>> retval=system(praatcommand);
R00001122223344445566K>>
the second line appears. I have no idea why. If i run the same call directyl in the cmd, everything is fine also.
Anyways, if I append a ' &' at the end of the system call, it does not happen (so there is no Problem).
Is this a bug or why does it happen? Or is the reason some echo calls inside the script?
I appended the Praat script for completeness.
best regards
Jonas
4 Kommentare
Jan
am 19 Mai 2022
@Jonas: I'm loosing the overview. At first it was:
>> retval=system(praatcommand);
R00001122223344445566K>>
Now it is
[retval]=system(praatcommand);
R001>>
And changes between R001 and R0011.
There is a connection to the ECHO commands in the script.
Well, confusing. I still think, that this is a problem of Praat, not of Matlab, so this is off-topic in this forum
Antworten (0)
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!