Filter löschen
Filter löschen

heatmap function inside a for loop only display the last graph

4 Ansichten (letzte 30 Tage)
Steve Wei
Steve Wei am 26 Jun. 2021
Kommentiert: Steve Wei am 26 Jun. 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?

Akzeptierte Antwort

Chunru
Chunru am 26 Jun. 2021
Create new figure in loop:
for i = 3:5
figure
heatmap(magic(i))
end

Weitere Antworten (0)

Kategorien

Mehr zu Data Distribution Plots finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by