t = 0:0.01:2; %Time scale
f = 3; %Sine wave frequency
y = sin(2*pi*f*t);
p = plot(t,y); %Return the handle to the plot 
set(p) %Display the settable properties
set(p,'Color','red','LineStyle',':')
set(p,'LineWidth',2.25)
set(gca,'YLim',[-2 2])
txt = get(gca,'Title'); %Get handle to text object
set(txt,'String','Basic Plotting Example')