1 choose a sampling rate of fs 40 khz 2 create a vector t


1. Choose a sampling rate of Fs = 40 kHz.

2. Create a vector t of 32768 time-sample points spaced according to this Fs, starting at 0 seconds.

3. Compute a vector x of 32768 samples of a 5400 Hz sinusoid with amplitude of square root of 2

4. Plot the first 100 points of the sinusoid vs. time and verify it is the correct amplitude and frequency, use the MATLAB line style "-o" to get a "line and circle" line style; the circles will show where the samples are. Notice the fact that the sample locations vary from cycle to cycle (because the frequency is not such that Fs is an integer multiple of it), which makes measuring the frequency from this time-domain plot a bit more difficult comment on your results. Can you get better accuracy by averaging together several measurements taken in different cycles?

5. Compute the DFT of the first 4096 points of the sinusoidal signal and plot the signal's DFT magnitude in dB vs. the frequency and verify the correct frequency.

Request for Solution File

Ask an Expert for Answer!!
Electrical Engineering: 1 choose a sampling rate of fs 40 khz 2 create a vector t
Reference No:- TGS0616909

Expected delivery within 24 Hours