Is there possible for subplot to superimposition two figure

조회 수: 4 (최근 30일)
Zen der Tasi
Zen der Tasi 2020년 5월 15일
답변: Zen der Tasi 2020년 5월 18일
I want to use subplot to display eight figure into a specific position
subplot('Position',pos)
but there is a problem
when two figure touch to each other
one of the figure will be vanish
so is there any method for me to deal with this probelm?

답변 (2개)

Anirudh Singh
Anirudh Singh 2020년 5월 18일
You can use :
subplot(4,2,"write number of the figure")
where m=4 and n=2 represent 4 rows and 2 columns to represent the 8 figures.
Example:
subplot(4,2,1)
x = linspace(0,10);
y1 = sin(x);
plot(x,y1)
title('Subplot 1: sin(x)')
subplot(4,2,2)
y2 = sin(2*x);
plot(x,y2)
title('Subplot 2: sin(2x)')
subplot(4,2,3)
y3 = sin(4*x);
plot(x,y3)
title('Subplot 3: sin(4x)')
subplot(4,2,4)
y4 = sin(8*x);
plot(x,y4)
title('Subplot 4: sin(8x)')
subplot(4,2,5)
y5 = sin(8*x);
plot(x,y5)
title('Subplot 4: sin(8x)')
subplot(4,2,6)
y6 = sin(8*x);
plot(x,y6)
title('Subplot 4: sin(8x)')
subplot(4,2,7)
y7 = sin(8*x);
plot(x,y7)
title('Subplot 4: sin(8x)')
subplot(4,2,8)
y8 = sin(8*x);
plot(x,y8)
title('Subplot 4: sin(8x)')
For more information you can reffer the following link: https://in.mathworks.com/help/matlab/ref/subplot.html

Zen der Tasi
Zen der Tasi 2020년 5월 18일

Thanks for your answer But the purpose that I want to display Is look like this

That i wish to display eight of the pictures In a design place by subplots And also i hope that each of the pictures can be overlapped by itself

카테고리

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