Filter löschen
Filter löschen

About 3 significant digit?

3 Ansichten (letzte 30 Tage)
Ls
Ls am 11 Sep. 2021
Beantwortet: Jan am 11 Sep. 2021
How do i present the output in 3 significant digit?

Antworten (1)

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

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by