How to get rid of the zero decimal?
조회 수: 4 (최근 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!