How can I divide/merge my subplots?

95 visualizaciones (últimos 30 días)
Ashfaq Ahmed
Ashfaq Ahmed el 26 de Ag. de 2022
Comentada: Hirithar el 11 de Abr. de 2024 a las 11:22
Hi! I want to plot this figure -
As you can see, the first plot is taking the 3 columns. And the last 6 plots are taking one columns only. Can anyone please tell me how can I write down tha code to plot this figure?

Respuesta aceptada

Image Analyst
Image Analyst el 26 de Ag. de 2022
subplot(3, 3, 1:3);
plot(rand(1, 10), '.-');
subplot(3, 3, 4);
plot(rand(1, 10), '.-');
subplot(3, 3, 5);
plot(rand(1, 10), '.-');
subplot(3, 3, 6);
plot(rand(1, 10), '.-');
subplot(3, 3, 7);
plot(rand(1, 10), '.-');
subplot(3, 3, 8);
plot(rand(1, 10), '.-');
subplot(3, 3, 9);
plot(rand(1, 10), '.-');
  3 comentarios
Matt J
Matt J el 10 de Abr. de 2024 a las 18:55
Yes, it is applicable when merging vertically.
subplot(3, 3, [1,4,7]);
plot(rand(1, 10), '.-');
subplot(3, 3, 2);
plot(rand(1, 10), '.-');
subplot(3, 3, 5);
plot(rand(1, 10), '.-');
subplot(3, 3, 6);
plot(rand(1, 10), '.-');
subplot(3, 3, 3);
plot(rand(1, 10), '.-');
subplot(3, 3, 8);
plot(rand(1, 10), '.-');
subplot(3, 3, 9);
plot(rand(1, 10), '.-');
Hirithar
Hirithar el 11 de Abr. de 2024 a las 11:22
Thank you. It's working

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by