Borrar filtros
Borrar filtros

How do I suppress the scale factor of a matrix?

16 visualizaciones (últimos 30 días)
Shawn Miller
Shawn Miller el 24 de Dic. de 2015
Comentada: Charles Cohen el 23 de Abr. de 2019
In matlab, if the largest element of a matrix is larger than 10^3 or smaller than 10^-3 , MATLAB applies a common scale factor for the short and long formats. How do I suppress this scale factor so that the matrix is displayed with every element as short/long format?

Respuesta aceptada

Image Analyst
Image Analyst el 24 de Dic. de 2015
Try
format long g
  2 comentarios
Shawn Miller
Shawn Miller el 25 de Dic. de 2015
Although this still changes number like 0.000000001 to scientific notation rather than keep everything as original, it works well for large number.
Charles Cohen
Charles Cohen el 23 de Abr. de 2019
format short g
Should do what you're trying to do. Suppress the scale factor and only show approx 5 digits.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by