
Y axis has limt e-20 to e-4 when I plot this y axis is multiply by e-4 and values like e-18,e-17 .. are showed near to x axis I want that y axis start from e-20 and have increasing step of e1 end at e-4 answer it plz
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
NILESH PANDEY
am 25 Okt. 2015
Kommentiert: Star Strider
am 25 Okt. 2015
i want y axis have e-20 e-19 e-18 e-17.... like value
0 Kommentare
Akzeptierte Antwort
Star Strider
am 25 Okt. 2015
You have to specify the 'YTick' values specifically:
The code:
x = linspace(0, 5); % Create Data
y = 10.^(randi([-20 -4], 1, 100)); % Create Data
figure(1)
semilogy(x, y)
grid
yts = 10.^round(-20:-4); % Generate Desired Y-Tick Values
set(gca, 'YTick',yts) % Set Y-Tick Values
axis tight
The plot:

2 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
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!