How to get rid of the zero decimal?
3 ビュー (過去 30 日間)
古いコメントを表示
One of my Matlab assignment answers are like:
1.0000 76.0000 23.0000 8.0000 68.0000 24.0000
But I want it to be like
1 76 23 8 68 24
How can I fix this?
0 件のコメント
回答 (3 件)
Star Strider
2012 年 9 月 10 日
編集済み: Star Strider
2012 年 9 月 10 日
If you are talking about the Command Window output, see format. If you always want a particular output format, you can change it in preferences. Otherwise, see fprintf for print format specifiers.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!