Custom output of the fprintf
이전 댓글 표시
Is there any way to use fprint with an exponential output field (e) for example:
%15.2e
and not get an output such as 3.00e-05 but 30.00e-06? Thank you
댓글 수: 1
José-Luis
2013년 2월 8일
No, you'd have to write a custom function.
채택된 답변
추가 답변 (1개)
Image Analyst
2013년 2월 8일
0 개 추천
That does not seem to be one of the format specifier options built in. See formatSpec section of the fprintf() help documentation. It would be nice if it were though. I've seen other programs where you can specify "Scientific notation" where the exponent can be any number, and "Engineering Notation" where the exponent is a multiple of 3.
댓글 수: 2
Giorgos Papakonstantinou
2013년 2월 8일
편집: Giorgos Papakonstantinou
2013년 2월 8일
Image Analyst
2013년 2월 8일
카테고리
도움말 센터 및 File Exchange에서 Low-Level File I/O에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!