heatmap function inside a for loop only display the last graph

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?

 Accepted Answer

More Answers (0)

Categories

Products

Release

R2021a

Asked:

on 26 Jun 2021

Commented:

on 26 Jun 2021

Community Treasure Hunt

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

Start Hunting!