Not sure why x-axis of the plot is doing this...
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
yc j
am 15 Jun. 2015
Kommentiert: yc j
am 15 Jun. 2015
Hello, I have several data files containing data of force and deflection. I'm simply plotting these two, and i get plot like below.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151176/image.jpeg)
ok... nothing much there. all good.
but when i try some of the other data file, the plot comes out like below:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151177/image.jpeg)
See the x-axis? it gives the value to 10^-3 rather than as a decimal number. How can this be fixed? I only want full numbers like 0.0035...
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 15 Jun. 2015
I don't know about R2014b and later, but in earlier versions this behaviour is completely automatic and there is no option to display it. However, you can use
xt := get(gca,'XTick');
set(gca, 'XTickLabel', cellstr(num2str(xt(:),'%0.4f')) )
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Legend 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!