Can a MATLAB script run silently?

4 ビュー (過去 30 日間)
Tesi
Tesi 2011 年 3 月 14 日
I want to run a script in MATLAB without the script displaying a lot of stuff. I'm looking for the equivalent of the instruction "@echo off" that can be used to run batch files in Windows.

採用された回答

Matt Fig
Matt Fig 2011 年 3 月 14 日
Why would the script be displaying anything? Go through the script and make sure there are no calls to DISP, and every line ends in a semi-colon. Then the script shouldn't be dumping anything to the command line.
  2 件のコメント
Sean de Wolski
Sean de Wolski 2011 年 3 月 14 日
or fprintf!
Tesi
Tesi 2011 年 3 月 14 日
Yeah, the old trick of the semicolon. Thanks!

サインインしてコメントする。

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2011 年 3 月 14 日
evalc() the script and throw away the output.
  2 件のコメント
Tesi
Tesi 2011 年 3 月 14 日
Thanks. That's a good trick too.
Aurelien Queffurust
Aurelien Queffurust 2013 年 2 月 5 日
cool exactly what I was looking for!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeEntering Commands についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by