How to scale a graph
170 ビュー (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/275640/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/275641/image.png)
My graph is the at the bottom one (second graph), but it supposed to look like the one above it (first graph). The values (x,y) are the same. Is there a way to scale it like the first graph?
My code
figure(1)
plot(Idx,Deflection,'-b','linewidth',1);
回答 (2 件)
Andy
2020 年 3 月 9 日
Use this immediately after the plot command to specify how you want the axis to plot.
ylim([-19 0])
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!