%Example 17.1a (Physics 330) clear;close all; dx=.01; x=0:dx:2*pi; f=sin(x); plot(x,f,'r-','LineWidth',2.5) aa=gca; set(aa,'XLimMode','manual','YLimMode','manual',... 'Xlim',[0 2*pi],'Ylim',[-1 1],'FontSize',20,'LineWidth',2.5,... 'XTick',[0 .5 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6],... 'YTick',[-1 -.8 -.6 -.4 -.2 0 .2 .4 .6 .8 1]) xlabel('\theta') ylabel('sin (\theta)') title('sin (\theta) vs. \theta')