フィルターのクリア

How can you convert a scientific number to decimal?

3 ビュー (過去 30 日間)
vatankhah
vatankhah 2013 年 8 月 9 日
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 件のコメント
Daniel Shub
Daniel Shub 2013 年 8 月 9 日
Do you mean something like format longg?

サインインしてコメントする。

採用された回答

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 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 8 月 9 日
[vatankhah comented]
It was useful Thanks for your help

サインインしてコメントする。

その他の回答 (1 件)

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

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by