필터 지우기
필터 지우기

Scaling of one axis only in 2D plot

조회 수: 4 (최근 30일)
klb
klb 2020년 8월 6일
편집: klb 2020년 8월 7일
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.

채택된 답변

Cris LaPierre
Cris LaPierre 2020년 8월 6일
Set the position property. See this post.
  댓글 수: 3
Cris LaPierre
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])
klb
klb 2020년 8월 7일
편집: klb 2020년 8월 7일
This works. Thanks Cris!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by