Question: 3. (8 Points) Complete the following code by doing FFT (use the built-in function 'fft') and plotting the magnitude up to Nyquist (Fs/2). On the

 3. (8 Points) Complete the following code by doing FFT (use

3. (8 Points) Complete the following code by doing FFT (use the built-in function 'fft') and plotting the magnitude up to Nyquist (Fs/2). On the plot, label the x-axis 'Frequency (Hz)' and the y-axis 'Mag'. Which signal is aliased? What is the aliased frequency? HINT: to get the frequency vector after taking the FET, use the function 'linspace and go from 0 to Nyquist for N/2 frequencies. $% Clear clear; close all; clc; %% Create signal N = 2^11; % Signal length fs = le3; $ Sampling freq (Hz) T = 1/fs; Sampling rate (sec) # Sinusoidal i params al = 1; Amplitude f1 = 100; $ Freq (Hz) $ Sinusoidal 2 params a21; Amplitude f2 = 600; Freq (Hz) 4 Sum Sinusoidal t = 0:1/fs: (N-1)/fs: x = a1*cos (2*pi*f1*t) + a2*sin (2*pif2t); I $% PET and plot spectrum (COMPLETE THIS PART)

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!