how to specify y axis?
Ältere Kommentare anzeigen
Akzeptierte Antwort
Weitere Antworten (1)
the cyclist
am 21 Jun. 2020
set(gca,'YTick',[0 500 1000],'YTickLabel',[0 500 1000])
5 Kommentare
Ibrahim AlZoubi
am 21 Jun. 2020
the cyclist
am 21 Jun. 2020
Bearbeitet: the cyclist
am 21 Jun. 2020
Here is a simple example that shows that this syntax works:
figure
plot(1000*rand(7))
set(gca,'YTick',[0 500 1000],'YTickLabel',[0 500 1000])

Perhaps you are doing something afterward that changes it? Maybe you could post the code that creates your figure.
Ibrahim AlZoubi
am 21 Jun. 2020
Ibrahim AlZoubi
am 21 Jun. 2020
the cyclist
am 21 Jun. 2020
rand(7)
was just me generating some random numbers to plot, to illustrate that my code suggestion worked in that case.
Kategorien
Mehr zu Graphics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

