% Sets up the interval t=-1:0.005:1; f=sin(2*pi*t); plot(t,f) % does the plot