semilogy and log10 : To make display in the same way
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
aneps
am 30 Jun. 2014
Bearbeitet: Mischa Kim
am 30 Jun. 2014
How to make the semilogy and log10 plot appear in same way?
A=[1:15];
B=[3:17];
figure(1)
semilogy(A,B)
figure(2)
plot(A,log10(B))
semilogy (figure1) shows the plot as the power of 10, while figure(2) shows only the power along y axis. How can I make figure(2) appear to be same as figure (1). I mean, to display Y axis of figure(2) in the power of 10.
0 Kommentare
Akzeptierte Antwort
Mischa Kim
am 30 Jun. 2014
Bearbeitet: Mischa Kim
am 30 Jun. 2014
Aneps, add
ylim([0 2])
set(gca,...
'YTickLabel',{'10^0','10^1','10^2'},...
'YTick',[0 1 2]);
after the second plot commmand. If you want to make it look fancy (superscripts) you can probably find something in the File Exchange.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations 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!