How to represent axis values are multiple of thousand

25 ビュー (過去 30 日間)
Mekala balaji
Mekala balaji 2019 年 5 月 10 日
コメント済み: Adam Danz 2019 年 5 月 14 日
Hi,
New Picture (1).bmp
I have below code, and want to represent x-axis & y-axis values are multiple of 1000.
I want to display x-axis in multiple of thousand (x10^3) as shown above, and y-axis as x10^2
x=[1000,2000,5000,8000,10000,11000,12000,13000,19000];
y=[100,200,400,500,600,650,780,800,900];
hold on
% scatter(x,y,'X')
% line(x,y)
% plot(x,y,'-o')
plot(x,y,'-o','MarkerSize',10,...
'MarkerEdgeColor','red',...
'MarkerFaceColor',[1 .6 .6])
  3 件のコメント
Mekala balaji
Mekala balaji 2019 年 5 月 10 日
Not displaying on y-axis (x10^2).
Adam Danz
Adam Danz 2019 年 5 月 14 日
See solution below.

サインインしてコメントする。

回答 (1 件)

Adam Danz
Adam Danz 2019 年 5 月 10 日
編集済み: Adam Danz 2019 年 5 月 13 日
To apply exponential notation to the y axis,
ax = gca
ax.YAxis.Exponent = 2;
Here is a Demo.

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品


リリース

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by