Change display of matrix entries
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Lou
el 31 de Ag. de 2015
Comentada: Stephen23
el 31 de Ag. de 2015
Hello, i'd like to change the way matlab presents my output matrix. At the moment it looks like this
M =
1.0e+03 *
0.0070 1.5990 0.0000 0.0520 0.0001 0.0004
0.0070 1.6020 0 0.0550 0 0.0001
0.0070 1.6020 0 0.0550 0 0.0003
How can i avoid the factorization? Thanks in advance!
0 comentarios
Respuesta aceptada
the cyclist
el 31 de Ag. de 2015
Editada: the cyclist
el 31 de Ag. de 2015
3 comentarios
Walter Roberson
el 31 de Ag. de 2015
Yes, that is wrong. Use
format long
"short" is for saving space, and one of the ways it saves space is by doing what you referred to as "factorization"
Or possibly you would prefer
format eng
Stephen23
el 31 de Ag. de 2015
Or actually read the documentation, which the cyclist gave links to in their answer, which has a table listing all of the format options (together with examples of these). Try some of the options, and find one that suits your needs!
Más respuestas (0)
Ver también
Categorías
Más información sobre Numeric Types en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!