About 3 significant digit?

How do i present the output in 3 significant digit?

답변 (1개)

Jan
Jan 2021년 9월 11일

0 개 추천

fprintf('%.3g\n', pi)
3.14
fprintf('%.3g\n', pi * 1e6)
3.14e+06
fprintf('%.3g\n', pi * 1e-6)
3.14e-06

카테고리

도움말 센터File Exchange에서 System Composer에 대해 자세히 알아보기

제품

질문:

Ls
2021년 9월 11일

답변:

Jan
2021년 9월 11일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by