% Script File: SinePlot
% Displays increasingly smooth plots of sin(2*pi*x)
close all
for n =[4 8 12 16 20 50 100 200 400]
x=linspace(0,1,n); y = sin(2*pi*x);
plot(x,y)
title(' The function y = sin(2*pi*x) ')
xlabel(' x (in rads) ')
ylabel(' y ')
pause(1)
end