フィルターのクリア

How to suppress command output on screen?

6 ビュー (過去 30 日間)
Adwait
Adwait 2014 年 6 月 27 日
編集済み: per isakson 2014 年 6 月 27 日
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 日
Try
str = evalc( 'system(''dir'')' );
and
[ status, cmdout ] = system('dir');
and compare with
system('dir');

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by