Is there possible for subplot to superimposition two figure

6 views (last 30 days)
Zen der Tasi
Zen der Tasi on 15 May 2020
Answered: Zen der Tasi on 18 May 2020
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?

Answers (2)

Anirudh Singh
Anirudh Singh on 18 May 2020
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 on 18 May 2020

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

Community Treasure Hunt

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

Start Hunting!

Translated by