I want to check if some axes have been cleared or not, based on which some further task is to be performed. I use cla
to clear some axes, not delete
. For example:
figure
hs1 = subplot(121); plot(rand(100,2), 'x');
hs2 = subplot(122); plot(rand(100,2), 'o');
cla(hs1)
Then, the question is how to determine if hs1
is cleared.