MATLAB: Close all figures in 2014b

closeclose all

Pre 2014b, all figures can be closed with
close all
Doesn't seem to work with 2014b. Can someone help?

Best Answer

Perhaps you have a hidden figure (i.e. a figure whose 'HandleVisibility' is set to 'off')
This could happen in R2014a and before too, but a figure with this setting is not affected by close all. You need close all force to close these ones:
figure % Can be closed
figure('HandleVisibility','off'); % cannot be
close all % close handle visible ones
close all force % close all of them