![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/487963/image.jpeg)
plot log with factor 20
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Ti-Quanh Ngu
am 14 Jan. 2021
Beantwortet: Bobby Fischer
am 14 Jan. 2021
Hello,
how can I plot a scale like in this picture?
0 Kommentare
Akzeptierte Antwort
Bobby Fischer
am 14 Jan. 2021
Hello
a=1.03;
h=(a^200-a^20)/9;
ypoints=a^(20):h:a^200;
xpoints=log(ypoints)./log(a);
figure(1)
close(1)
figure(1)
hold on
axis([0 220 -1 1])
plot([20 200],[0 0],'b-','linewidth',3)
z=0.05;
for k=1:10
plot([xpoints(k) xpoints(k)],z*[-1 1],'b','linewidth',2)
end
text(20-1,-1.5*z,'20')
text(200-2,-1.5*z,'200')
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/487963/image.jpeg)
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!