MATLAB: How to keep a certain axes unchanged

matlab gui

I am using following statement to clear all axes in gui at once.
arrayfun (@cla,findall (0,'type','axes'));
The statement works well and clears all axes. But out of all axes I need to keep one axes not to be cleared as it displays logo. How to modify above statement so that said axes shouldn't be cleared.

Best Answer

setdiff the results of the findall and the handles you want to keep.