MATLAB: Please, I would like to present the xlimit in a plot into scientific notation

scientific notation

Hi all,
Please, I have a graph that has axis limit in the range of 0,1000, 2000 ,……..,15000. I would like to have it in scientific notation in the form 0, 1, 2, 3, ….., 15 *10^3.
Please, how can I do that.
Thank you in advance.
Kwaku.

Best Answer

x_data=0:15000;
plot(x_data);
ax=gca;
ax.XAxis.Exponent=3;
See more option here