% First example of creating UI control
echo on

h = uicontrol('Style', 'pushbutton', 'String', 'Plot',...
    'Position', [20 150 100 70]);

% press a key to see all the properties of the object created.
pause
get(h)

% press a key to set the background color of the pushbutton to green
pause
set(h, 'backgroundcolor', 'g')

echo off