pbstart=uicontrol(gcf,"Style","pushbutton","Position",[50,5,60,25],"String","Start Plot","Callback",...
    "t=-pi:pi/20:2*pi;plot(t,sin(t))");
ptgrid=uicontrol(gcf,"Style","togglebutton","Position",[150,5,60,25],...
    "String","Grid","Callback",'grid');