How can you convert a scientific number to decimal?

3 次查看(过去 30 天)
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?

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2013-8-9
编辑:Azzi Abdelmalek 2013-8-9
a=4.1084e+001-9.6671e+002i
out=sprintf('%.2f+%.2fi',real(a),imag(a));
out=strrep(out,'+-','-')

更多回答(1 个)

Matt J
Matt J 2013-8-9
If you want MATLAB to display its results differently, use the FORMAT command.

类别

Help CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by