X=@(t) 3*sin(100*pi*t);
t=linspace(0,0.05);
%
n=linspace(0,0.035); %%This line is trying to match the number of elements in N
N=[0 2.6 2.6 0 -2.6 -2.6 0];
Xn=3*sin(pi*N/3);
figure(1);
plot(t,X(t));
grid on;
hold on;
stem(N,Xn,'*-r');
axis([0 0.05 -3 3])
