place number before decimal point
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi,
how can we set place number before decimal point?
For example i want to show 2.6104e+03 as 2610.4
댓글 수: 0
채택된 답변
Star Strider
2015년 4월 8일
It depends on where you’re displaying it. If in the Command Window, the format function determines how it is output:
value = 2610.4;
format short e
v1 = value
format short g
v2 = value
produces:
v1 =
2.6104e+03
v2 =
2610.4
댓글 수: 0
추가 답변 (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!