Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clc
- clear
- t=0:0.0001:1;
- n=0:0.0001:1;
- y1=sin(2*pi*5*t);
- ts=1/10;
- N=32;
- t1=linspace(0,1,100); %dyskretyzacja czasu 20 razy wieksze Ts niz wystepujace w sygnale
- x=sin(2*pi*5*t1); %próbkowanie sygnału
- figure(2)
- subplot(2,1,1)
- plot(t,y1)
- subplot(2,1,2)
- plot(t1,x);
- y3=exp(-20*(t-0.5).^2).*sin(2*pi*10*t);
- figure(3)
- subplot(2,1,1)
- plot(t,y3)
- subplot(2,1,2)
- t1=linspace(0,1,200); %dyskretyzacja czasu 20 razy wieksze Ts niz wystepujace w sygnale
- x=exp(-20*(t1-0.5).^2).*sin(2*pi*10*t1);
- plot(t1,x);
- y4=(1/2*pi.*t).*sin(2*pi*t);
- figure(4)
- subplot(2,1,1)
- plot(t,y4)
- subplot(2,1,2)
- t1=linspace(0,1,20); %dyskretyzacja czasu 20 razy wieksze Ts niz wystepujace w sygnale
- x=(1/2*pi.*t1).*sin(2*pi*t1);
- plot(t1,x);
- y5=sin(2*pi*(10*t+10*sin(4*pi*t)/(4*pi)));
- figure(5)
- subplot(2,1,1)
- plot(t,y5)
- subplot(2,1,2)
- t1=linspace(0,1,100); %dyskretyzacja czasu 20 razy wieksze Ts niz wystepujace w sygnale
- x=sin(2*pi*(10*t1+10*sin(4*pi*t1)/(4*pi)));
- plot(t1,x);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement