Is there possible for subplot to superimposition two figure

4 次查看(过去 30 天)
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 中查找有关 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