Filter löschen
Filter löschen

How to represent axis values are multiple of thousand

29 Ansichten (letzte 30 Tage)
Mekala balaji
Mekala balaji am 10 Mai 2019
Kommentiert: Adam Danz am 14 Mai 2019
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
hold on
% scatter(x,y,'X')
% line(x,y)
% plot(x,y,'-o')
'MarkerFaceColor',[1 .6 .6])
  3 Kommentare
Mekala balaji
Mekala balaji am 10 Mai 2019
Not displaying on y-axis (x10^2).
Adam Danz
Adam Danz am 14 Mai 2019
See solution below.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Adam Danz
Adam Danz am 10 Mai 2019
Bearbeitet: Adam Danz am 13 Mai 2019
To apply exponential notation to the y axis,
ax = gca
ax.YAxis.Exponent = 2;
Here is a Demo.


Mehr zu 2-D and 3-D Plots 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!

Translated by