%%This is a function prototype to get boxes to work so that I don't have to
%%go in and run the m-file every time I want to change something on a phase
%%plot

x=0;
y=1;
1_plot=plot(x,y);

first_figure=figure;    %Create figure with handle first_figure

Change_button=uicontrol('style','pushbutton','string','Go');

Dot_value=uicontrol('style','slider',
                    'position',[100 20 60 20],
                    'min',0,'max',20);
                    
                    
if get(Change_button,'value')==1
    y=get(Dot_value,'value');
    set(l_plot,'xdata',x,'ydata',y);
    drawnow;
end