Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 1 (a) This question will investigate the effect of varying the sampling rate on the transform of the sampled signal. Write a MATLAB script
Question 1 (a) This question will investigate the effect of varying the sampling rate on the transform of the sampled signal. Write a MATLAB script which will prompt the user to specify the number of periods and the step size over which the transform is to be computed. This will define the w array as C -n *pi step size n*pi j where n is the number of periods. The array w should be declared to be global Re-write your code used in Lab 3 as a function which receives a signal x (n) and returns the Discrete Time Fourier Transform of the signal. Make use of a function to compute the value of N for a given value of sampling rate The program is to ask the user to input the value of the sampling rate (in terms of the number of times of the Nyquist rate, i.e. 2 times. 3.6 times, etc). The program then plots in one figure win dow the sampled signal (using stem) and the Fourier transform of the sampled signal. This is to be repeated 5 times
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