Is there possible for subplot to superimposition two figure
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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?
0 comentarios
Respuestas (2)
Anirudh Singh
el 18 de Mayo de 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
0 comentarios
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!