% Exercise: create a GUI and delete a pushbutton
echo on

h_pb = uicontrol('style', 'pushbutton', 'string', 'plot data', ...
    'position', [425 320 100 40]) 
h_pm = uicontrol('style', 'popupmenu', 'string', 'one|two|three', ...
    'position', [425 250 100 40])
h_axis = axes('position', [0.1 0.1 0.6 0.8])
drawnow

% press a key to delete the Plot Data button
pause
delete(h_pb)

echo off