필터 지우기
필터 지우기

How can I change the scale of y axis from figure 1 to figure 2

조회 수: 1 (최근 30일)
Yasir Ghazi
Yasir Ghazi 2017년 11월 18일
답변: KL 2017년 11월 18일

답변 (1개)

KL
KL 2017년 11월 18일
Use handles.
f1 = figure(1);
h1 = plot(rand(3));
ax1 = gca;
f2 = figure(2);
h2 = plot(rand(5));
ax2 = gca;
now use ax1 properties on ax2
ax2.YLim = ax1.YLim;

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by