Question: Construct and run the following MATLAB code: x = randn ( 1 0 0 0 , 1 ) ; figure ( 1 ) , spec

Construct and run the following MATLAB code:
x=randn(1000,1);
figure(1),spec analysis(x,1)
h=fir1(30,0.2*2);
y=filter(h,1,x);
figure(2),spec analysis(y,1)
(a) Explain what does each line of the code perform.
(b) By running the code, observe and explain the results.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!