About 3 significant digit?

How do i present the output in 3 significant digit?

Respuestas (1)

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

Categorías

Más información sobre System Composer en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

Ls
el 11 de Sept. de 2021

Respondida:

Jan
el 11 de Sept. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by