About 3 significant digit?

5 visualizaciones (últimos 30 días)
Ls
Ls el 11 de Sept. de 2021
Respondida: Jan el 11 de Sept. de 2021
How do i present the output in 3 significant digit?
  2 comentarios
Walter Roberson
Walter Roberson el 11 de Sept. de 2021
See also compose()

Iniciar sesión para comentar.

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 Image Processing Toolbox en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by