Effacer les filtres
Effacer les filtres

heatmap function inside a for loop only display the last graph

4 vues (au cours des 30 derniers jours)
Steve Wei
Steve Wei le 26 Juin 2021
Commenté : Steve Wei le 26 Juin 2021
I'm using the heatmap function inside a livescript and my code loos like this
for i = 1:10
heatmap(M)
end
but the output only contains the 10th graph, is there a way to keep all graphs in the output?

Réponse acceptée

Chunru
Chunru le 26 Juin 2021
Create new figure in loop:
for i = 3:5
figure
heatmap(magic(i))
end

Plus de réponses (0)

Catégories

En savoir plus sur Data Distribution Plots dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by