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
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
2013-8-9
If you want MATLAB to display its results differently, use the FORMAT command.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!