Pathhacker

0 50 0
Matlab code for sampling signal
%-------sampling-------
clc
clear all
T=0.1;t=0:0.05/200:T;
x=cos(200*pi*t);
subplot(2,2,1);
plot(t,x);
title('original input signal');
xlabel('time');
ylabel('ampliude');
s1=400;
tn1=0:(1/s1):T;
xn1=cos(200*pi*tn1);
subplot(2,2,2);
stem(tn1,xn1);
title('Sampled signal when fs>2fm');xlabel('Time index');
ylabel('amplitude');
s2=200;
tn2=0:(1/s2):T;
xn2=cos(200*pi*tn2);
subplot(2,2,3);
stem(tn2,xn2);
title('Sampled signal when fs=2fm');
xlabel('Time index');
ylabel('amplitude');
s3=50;
tn3=0:(1/s3):T;
xn3=cos(200*pi*tn3);
subplot(2,2,4);
stem(tn3,xn3);
title('Sampled signal when fs<2fm');
xlabel('Time index');
ylabel('amplitude')

Tags

Matlab code for Generation of unit impulse sequence %---------Generation of unit impulse sequence---------------- clc clear all a=input('Enter desired…
by divyasri
0 86 0
Matlab code for generation of exponential function %--------------exponen_seqence------------------ clc clear all n=1:100 x2=exp(-n); subplot(2,2,3); stem(n,x2); xlabel('n'); ylabel('x2(n)');…
by divyasri
0 72 0
Matlab code for generation of unit step function %-------------unit step response---------------- clc clear all a=input('Enter the desired length…
by divyasri
0 81 0
Your nameYour emailYour text

Leave a Reply

Log in
Register
Send message