Borrar filtros
Borrar filtros

How can I avert that matlab round off the number?

1 visualización (últimos 30 días)
Edoardo
Edoardo el 4 de Nov. de 2012
Hi:
How can I avert that matlab round off in the plot the number. If I add as input this:1672324.884 in my plot appears 167*10^4.
Thanks
  1 comentario
Jan
Jan el 4 de Nov. de 2012
Please post the corresponding code. "Adding 1672324.884 in your plot" is nothing, which is reproducible directly. I assume you are talking about the tick labels...

Iniciar sesión para comentar.

Respuesta aceptada

Matt J
Matt J el 4 de Nov. de 2012
Zoom in on the plot (using the spyglass toolbar icon) to see the number with more precision.

Más respuestas (1)

Walter Roberson
Walter Roberson el 4 de Nov. de 2012
If you set the xticklabel or yticklabel (as appropriate) property for the plot axis, then MATLAB will not show exponential format. You can format your ticks as you find appropriate.
set(gca, 'XTickLabel', str2num(reshape(get(gca, 'XTick'), [], 1), '%12.3f'))

Categorías

Más información sobre Labels and Annotations en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by