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 件のコメント
その他の回答 (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!