subplot code in matlab
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Sarah Yun
le 29 Déc 2019
Réponse apportée : John D'Errico
le 29 Déc 2019
What is subplot code to make 3 graphs show like
X X X
where X is graph
thank you
0 commentaires
Réponse acceptée
John D'Errico
le 29 Déc 2019
This should be in the help for subplot. You want to create a 1x3 array of subplots.
subplot(1,3,1)
plot(rand(5),'.')
subplot(1,3,2)
plot(rand(5),'.')
subplot(1,3,3)
plot(rand(5),'.')
Of course, you could use a loop too, but the above is the simplest form.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Subplots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!