How do use gplot as subplots in a for loop?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Brandon Lieberthal
il 22 Feb 2019
Commentato: Brandon Lieberthal
il 22 Feb 2019
Hello,
I'm am trying to produce a plot of 5 x 5 network graphs in a subplot formation. This is my Matlab code:
figure
hold on
for i = 1:25
[xdata,ydata,AdjMat] = makerandomnetwork();
subplot(5,5,i);
gplot(AdjMat,[xdata ydata],'k')
end
The problem is that all the other subplots are cleared whenever a new subplot is generated. Any advice?
0 Commenti
Risposta accettata
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!