Question
Using MATLAB Code solve these questions. 1. The two variables loaded into the workspace are muxSignal and fs. The raw data stream of the music
Using MATLAB Code solve these questions.
1. The two variables loaded into the workspace are muxSignal and fs. The raw data stream of the music signals is stored in muxSignal while fs contains the sampling frequency. Determine the sampling period, store it inside the variable Ts and then use this to construct a time domain vector, t, that corresponds to muxSignal. Plot muxSignal against this time vector.
2. Compute the Fourier transform of muxSignal and store this in MUX. Also construct a suitable frequency vector, k, for MUX. Generate MUX fftshifted that is appropriate for plotting using suitable commands. Plot the magnitude spectrum of MUX.
3. The peaks in the magnitude spectrum give the precise locations of the frequency shifts. Identify the location of the peaks in the positive frequencies (you may use an inbuilt MATLAB function) and store them inside a row vector called fshift in ascending order. fshift values should be whole numbers, round to the nearest integer if necessary.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started