How to suppress command output on screen?
Afficher commentaires plus anciens
I'm having trouble suppressing the output of a command. I've tried the semicolon and echo off command with no success.
echo off all
system('C:\LSDYNA\program\ls-dyna_smp_s_R610_winx64_ifort101.exe i=beam.k ncpu=4');
This gives the output from the program invoked, which is very long and unnecessary. This snippet is part of a bigger code where I need to print to screen at regular intervals.
Any tips? Thanks.

1 commentaire
Adwait
le 27 Juin 2014
Réponses (1)
per isakson
le 27 Juin 2014
Modifié(e) : per isakson
le 27 Juin 2014
Try
str = evalc( 'system(''dir'')' );
and
[ status, cmdout ] = system('dir');
and compare with
system('dir');
Catégories
En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!