Ts=0.01;
t=[-5/3:Ts:5/3];
x=2*sin(3*pi*t)./(3*pi*t);
x(t==0)=2;
plot(t,x);
xlabel('t [s]')
ylabel('x(t)')

%%%
t=0:0.01:1;
x=cos(2*pi*t);
y=3*sin(2*pi*t);
figure
plot(x,y); hold on

for i=1:length(t)
    plot(x(i),y(i),'ro'); hold on
    waitforbuttonpress
end


