How can you convert a scientific number to decimal?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have an equation in matlab that gave me this result:
4.1084e+001 -9.6671e+002i
how can I convert it to a decimal number?
1 comentario
Respuesta aceptada
Azzi Abdelmalek
el 9 de Ag. de 2013
Editada: Azzi Abdelmalek
el 9 de Ag. de 2013
a=4.1084e+001-9.6671e+002i
out=sprintf('%.2f+%.2fi',real(a),imag(a));
out=strrep(out,'+-','-')
1 comentario
Más respuestas (1)
Matt J
el 9 de Ag. de 2013
If you want MATLAB to display its results differently, use the FORMAT command.
0 comentarios
Ver también
Categorías
Más información sobre Data Type Conversion 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!