"close all" equivalent for HeatMap charts

If you're creating a bunch of heatmaps:

for i=1:10
    HeatMap(rand(5,5))
end

      

then you are left with a bunch of open shape windows. Although they are not really "windows", they are "HeatMap windows" (tangential question: why ???).

If you have a bunch of normal shapes, you can close them by typing close all

. But that does nothing for HeatMap windows. So ... what's the alternative?

+3


source to share


2 answers


You can close shapes with hidden handles (I believe this is the case for the HeatMap) with

close all hidden

      

You can also force close all shapes with



close all force

      

See CLOSE for details .

+3


source


They are objects . I would advise the following: store the links in advance.



H = {};
for i=1:10
    H{i} = HeatMap(rand(5,5))
end
%Now delete all!
cellfun(@delete,H);

      

+1


source







All Articles