How to not display the output of a function?

35 ビュー (過去 30 日間)
SANG GYU LEE
SANG GYU LEE 2016 年 9 月 30 日
コメント済み: Puthi Seng 2021 年 5 月 24 日
I have a function which has three outputs. one of them is too long, so it takes few minutes to display the answer. Is there any way that I do not see the output in the command window?

採用された回答

James Tursa
James Tursa 2016 年 9 月 30 日
編集済み: James Tursa 2016 年 9 月 30 日
Put a semi-colon at the end of the line. E.g.,
x = myfunction(stuff) <-- will display the result to the screen
x = myfunction(stuff); <-- will not display the result
  1 件のコメント
Puthi Seng
Puthi Seng 2021 年 5 月 24 日
The god himself, took me 30 min just to find this.

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by