Filter löschen
Filter löschen

How can you convert a scientific number to decimal?

3 Ansichten (letzte 30 Tage)
vatankhah
vatankhah am 9 Aug. 2013
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?

Akzeptierte Antwort

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

Weitere Antworten (1)

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

Kategorien

Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by