Format of exponential with num2str
Ältere Kommentare anzeigen
Hello everybody,
I have a problem and I need some help.
I have something like this :
num2str(2.55, '1.3e') and this gives me
2.550e+000
With 1 for the field width and 3 for the precision after the decimal point.
What I want is this :
2.550+e00
Only 2 zeros for the exponential. Is there a way to do this?
Thank you.
Akzeptierte Antwort
Weitere Antworten (4)
Kov
am 21 Feb. 2013
0 Stimmen
José-Luis
am 21 Feb. 2013
0 Stimmen
You could create your own custom function
Kov
am 21 Feb. 2013
0 Stimmen
Daniel Shub
am 21 Feb. 2013
0 Stimmen
There was some discussion of this here
Kategorien
Mehr zu Matrix Indexing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!