Converting a real number to scientific format
이전 댓글 표시
I'm not sure how to start this problem with Matlab...
Write a program that accepts a real number and displays the number in scientific format “x.xxxEn”. For example 2546 would be displayed as 2.546000e+003
How would the mod function be of use for this?
댓글 수: 1
Walter Roberson
2012년 3월 12일
The example disagrees with the question. The question requires three places after the decimal point, but the example shows 6 places after the decimal point.
답변 (1개)
Sean de Wolski
2012년 3월 12일
doc fprintf
I don't really see any use for mod.
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!