How to convert the scientific notation to standard form
21 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Samantha Chong
am 8 Jan. 2016
Beantwortet: Walter Roberson
am 8 Jan. 2016
Hi all, I am trying to convert the y-axis numbers from scientific notation to standard form. Below is the commands that I used, please see plot which I've attached: x=linspace(-10,10,200);
y=sin(4*x)./exp(x);
plot(x,y)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/153117/image.png)
Thank you very much :)
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 8 Jan. 2016
If you are using R2014b or newer then I understand there are new facilities to control this.
For R2014a or earlier, you need to set the axes YTickLabel property yourself. For example,
curYTick = get(gca,'YTick');
YLabel = cellstr( num2str( curTick(:), '%f') );
set(gca, 'YTickLabel', YLabel);
Adjust the %f format code as needed.
0 Kommentare
Weitere Antworten (0)
Siehe auch
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!