How to prevent any variable from displaying its name?
2 ビュー (過去 30 日間)
古いコメントを表示
How do I prevent a variable from displaying its name when it is returning an answer back on the command window?
Example:
a=1+1 %input by user
a= 2 %result
But I want to see:
a=1+1 %input by user
2 %result
Thanks in advance!
0 件のコメント
採用された回答
Jan
2013 年 9 月 2 日
Use a semicolon on the end of each line, e.g.:
a = 1 + 1;
disp( num2str(a) );
2 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Whos についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!