MATLAB: How to convert the scientific notation to standard form

scientific notation

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)
Thank you very much 🙂

Best Answer

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.