About 3 significant digit?

How do i present the output in 3 significant digit?

Antworten (1)

Jan
Jan am 11 Sep. 2021

0 Stimmen

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 System Composer finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

Ls
am 11 Sep. 2021

Beantwortet:

Jan
am 11 Sep. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by