Scaling of one axis only in 2D plot
1 次查看(过去 30 天)
显示 更早的评论
hello eveyone,
I have the display on left. I want to get the diplay on the right (currently stretched using MS Word). Height of y-axis to stay same. How can I do it in MATLAB?
Thanks for your time in advance.

0 个评论
采纳的回答
Cris LaPierre
2020-8-6
3 个评论
Cris LaPierre
2020-8-7
To confirm, first try this
d= rand(100,1);
plot(d)

Then try this
d= rand(100,1);
plot(d)
x0=10;
y0=10;
width=600;
height=200
set(gcf,'position',[x0,y0,width,height])

更多回答(0 个)
另请参阅
类别
在 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!