subplot in matlab

Respuestas (3)

Vivek Bhadouria
Vivek Bhadouria el 14 de Ag. de 2011

1 voto

Dear pg,
With 9*3 subplot,you will get 27 plots in a single window. Let us assume you want to plot some signals (vectors) located in your workspace named as a,b,c........z (if you are working with images then use imshow command to show an image in subplot). You can create 9*3 subplot as
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
subplot(9,3,1);plot(a);
subplot(9,3,2);plot(b);
subplot(9,3,3);plot(c);
subplot(9,3,4);plot(d);
subplot(9,3,5);plot(e);
.
.
.
.
.
subplot(9,3,26);plot(z);
subplot(9,3,27);plot(some_other_variable)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
In subplot 9*3 means,the window will be having 9 rows and 3 columns so making total of 27 subplots.
Friedrich
Friedrich el 12 de Ag. de 2011

0 votos

Hi,
do you mean this:
subplot(9,3,1)
plot(1:10)
subplot(9,3,2)
plot(1:10)
%...and so on and finally
subplot(9,3,27)
plot(1:10)
Jan
Jan el 13 de Ag. de 2011

0 votos

Please read:
help subplot
doc subplot

Etiquetas

Preguntada:

Pg
el 12 de Ag. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by