フィルターのクリア

heatmap function inside a for loop only display the last graph

4 ビュー (過去 30 日間)
Steve Wei
Steve Wei 2021 年 6 月 26 日
コメント済み: Steve Wei 2021 年 6 月 26 日
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?

採用された回答

Chunru
Chunru 2021 年 6 月 26 日
Create new figure in loop:
for i = 3:5
figure
heatmap(magic(i))
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Distribution Plots についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by