필터 지우기
필터 지우기

How to plot multiple figures in the same figure in matlab??

조회 수: 3 (최근 30일)
Sharmy Roy
Sharmy Roy 2012년 10월 9일
How to plot multiple figures in the same figure in matlab?? I have to plot overlapping triangular windows in the same graph. Could anyone help me??. I need this for my project.

채택된 답변

Walter Roberson
Walter Roberson 2012년 10월 9일
plot(x1, y1);
hold on
plot(x2, y2);
plot(x3, y3);
If you need multiple axes that overlap, do not use subplot() as subplot() automatically erases any axes that the new axes would overlap.
ax1 = axes('Position', [10 10 50 50]);
plot(ax1, x1, y1);
ax2 = axes('Position', [20 20 50 50]);
plot(ax2, x2, y2);
ax3 = axes('Position', [30 10 50 50]);
plot(ax3, x3, y3);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by