how to silence display of variables?

5 ビュー (過去 30 日間)
John
John 2014 年 2 月 19 日
コメント済み: John 2014 年 2 月 19 日
Hello,
I have the following iteration but the problem is, it automatically displays array values in command window:
X=[-10:1:10]; Y=[]; for i=1:length(X),Y(i)=0*X(i)+0,end
How to silence the display of the variables?

採用された回答

Jason R
Jason R 2014 年 2 月 19 日
Use ; to suppress output. So, Y(i)=0*X(i)+0; instead of Y(i)=0*X(i)+0,
  1 件のコメント
John
John 2014 年 2 月 19 日
Thank you very much. Now it works as I wanted it to.

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by