How to suppress command output on screen?

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

Adwait
Adwait 2014년 6월 27일
Another reason I want to suppress the output of the system command is that I need to invoke this command several times, which clutters the command window.

댓글을 달려면 로그인하십시오.

답변 (1개)

per isakson
per isakson 2014년 6월 27일
편집: per isakson 2014년 6월 27일

0 개 추천

Try
str = evalc( 'system(''dir'')' );
and
[ status, cmdout ] = system('dir');
and compare with
system('dir');

카테고리

도움말 센터File Exchange에서 Variables에 대해 자세히 알아보기

제품

태그

질문:

2014년 6월 27일

편집:

2014년 6월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by