how can we supress ans?
2 ビュー (過去 30 日間)
古いコメントを表示
while_example(2)
„numdigit“ 2
ans =
„numdigit“ 2
how can we stop repeating ans huh while my answer is already showed
0 件のコメント
回答 (1 件)
Star Strider
2015 年 5 月 30 日
It is a default variable. I am not exactly sure what you are doing, but putting a semicolon at the end of a line will suppress the output:
2
3;
prints only:
ans =
2
to the Command Window.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!