unix/system comand Always print out some environment setting when using it
Ältere Kommentare anzeigen
When I use the command unix or system, it will always print out some settings in the screen, it really bothers me. Could anyone help me?
The first line following my command is not what I want. See these pictures for illustration. Thanks advance! Thank you very much!

Antworten (1)
% Without semicolon:
system('pwd')
% With semicolon:
system('pwd');
% With semicolon and catching outputs:
[status, out] = system('pwd');
disp('ready')
The last version helps.
1 Kommentar
ruth wang
am 4 Jul. 2022
Kategorien
Mehr zu System Commands finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!