How to plot y-axies?
2 次查看(过去 30 天)
显示 更早的评论
Dear all, Could help me please about how to plot y-axies as seen in the figure below:
Thanks...
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/161746/image.jpeg)
0 个评论
回答(2 个)
skysky2000
2017-3-15
1 个评论
Rik
2017-3-15
What code are you using, because I get the axis you need with the code below:
x=[250 500 600 700 780];
y=[16 8 4 2 1];
semilogy(x,y)
set(gca,'YTick',[1 2 4 8 16])
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!