User`s guide

Making Multiple GUIs Work Together
function fig ure_ CloseRequestFcn(hObject , eventdata, handle s)
% Don't close this figure. It must be dele ted from Icon Edit or
Do the same for the Tool Palette:
% in toolPalette
function fig ure_ CloseRequestFcn(hObject , eventdata, handle s)
% Don't close this figure. It must be dele ted from Icon Edit or
Finally, in the output function, delete all three GUIs:
% in Icon E dito r
function var argo ut = guide_iconedit or_O utputFcn(hObject, ...
eventdata, han dles )
% Return the cdata of the icon. If cancell ed, this will be empty
varargout{1} = handles.mIconCData;
delete(handles.toolPalette);
delete(handles.colorPalette);
delete(hObject);
9-43