Sunteți pe pagina 1din 4

t=0:0.

001:25;
y=cos((pi*t) /2);
plot(t,y);
axis([0,25,-2,2]);
grid on
Xn=11;
t=0:0.001:25;
ts=2; y=sinc((t-Xn*ts)/ts);
plot(t,y, 'r'); axis([0,25,-2,2]); grid on
Xn=8;
t=0:0.001:25;
ts=3; y=sinc((t-Xn*ts)/ts);
plot(t,y, 'g'); axis([0,25,-2,2]); grid on
n=25;
t=0:0.001:25;
ts=1;
y=sinc((t-n*ts)/ts);
plot(t,y); grid on axis([0,25,-2,2]);

S-ar putea să vă placă și