divylmu
Newbie level 4
I need to design a band pass filter, then create a white gaussian signal of 1024 samples. After that I need to filter that signal x(t). I have to den cross correlate the output and the white gaussian noise y(t). I have to get the frequency response of x(t) and y(t)
can any one help me please..
clc;
clear all;
n=input('Enter the order of the Filter:');
for l = 0:n-1;
end
b = fir1(l,[0.35 0.65]);
freqz(b,1,512)
figure(1),
x=randn (1024,1);
figure(2),plot(x);
xlabel('x')
ylabel('x[n]')
grid
y=filter(1,b,x);
figure (3);
xlabel('output')
ylabel('y')
plot
c=xcorr(x,y);
figure(4),
plot(c)
d=freqz(b,x,y)
figure (5);
can any one help me please..
clc;
clear all;
n=input('Enter the order of the Filter:');
for l = 0:n-1;
end
b = fir1(l,[0.35 0.65]);
freqz(b,1,512)
figure(1),
x=randn (1024,1);
figure(2),plot(x);
xlabel('x')
ylabel('x[n]')
grid
y=filter(1,b,x);
figure (3);
xlabel('output')
ylabel('y')
plot
c=xcorr(x,y);
figure(4),
plot(c)
d=freqz(b,x,y)
figure (5);