Close a GUI



Dear friends,

I wanna close a GUI when I push the button close... i wrote this code
:

function hboton_cerrar_Callback (hObject, eventdata)
delete(f);
end

where f was defined as:
f = figure ('Visible', 'off', 'Name', 'My 1st GUI',...
'Position', [260,260, 300, 300]);

i have read some post and people told to do it this way (or I
understood it, my english is bad and maybe i'm in a mistake...)

Please, help is needed ! THANKS !
.


Quantcast