How can I divide/merge my subplots?
63 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Ashfaq Ahmed
il 26 Ago 2022
Commentato: Hirithar
il 11 Apr 2024
Hi! I want to plot this figure -
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1108915/image.png)
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?
0 Commenti
Risposta accettata
Image Analyst
il 26 Ago 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 Commenti
Matt J
il 10 Apr 2024
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), '.-');
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Subplots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!