Display number with units in scientific notation (format compact)
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jared Pagett
el 14 de Jul. de 2020
Respondida: madhan ravi
el 14 de Jul. de 2020
Example:
u = symunit;
m_Sr84 = 83.913430 * u.m_u;
unitConvert(m_Sr84,u.kg)
The output is
ans =
0.00000000000000000000000013934152872740444672207576264548*[kg]
I'd naturally like to by default display this in scientific notation. Running "format compact" has no effect. How can this be achieved?
0 comentarios
Respuesta aceptada
madhan ravi
el 14 de Jul. de 2020
sympref('FloatingPointOutput',true) % instead of format
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Symbolic Math Toolbox 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!