Borrar filtros
Borrar filtros

heatmap function inside a for loop only display the last graph

4 visualizaciones (últimos 30 días)
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?

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Data Distribution Plots en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by