-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Matlab Assignment No. 8: - Download the one-dimensional signal file, signal.raw, located in this directory. This file contains 16-bit integer samples of a signal sampled at 8 kHz. Write a matlab program that allows the user to specify the center time and window duration in seconds as arguments. Plot the corresponding signal. For example, if the user specifies a center time of 0.5 secs, and a window duration of 0.03 secs, you should plot the portion of the file that starts at sample number: start_sample = (0.5 - 0.03/2) * 8000 = 3880; and ends at: end_sample = start_sample + 0.03*8000 - 1 = 4119; - In addition to plotting the waveform, plot the magnitude spectrum in dB (as in problem 7) for the corresponding signal. - Demonstrate what happens to the spectrum as you increase the window duration of the signal. - Demonstrate the different types of spectra you can find in this file (look at different parts of the waveform). Listen to the data and explain why the spectra differ. This assignment is due before the beginning of the final exam. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Matlab Assignment No. 7: - A discrete signal is defined as a collection of the following points: x(n) = {0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0} Compute and display the frequency response using the discrete Fourier transform (DFT) to compute the spectrum. - A system impulse response is defined by: h(n) = {1, 2, 1, 0, -1, -2} Compute and display the frequency response using the DFT. - Multiply these two frequency responses together, and compare to the frequency response of the signal computed in Assignment No. 6. - Generate a 1 kHz sinewave and sample it at a sample frequency of 8 kHz. Plot the magnitude spectrum of the signal using 256 points of signal data. All frequency response plots should show the magnitude in dB, phase in radians on a [-PI/2, PI/2] scale, and frequency on a linear scale. This assignment is due by 04/17/98. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Matlab Assignment No. 6: - A discrete signal is defined as a collection of the following points: x(n) = {0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0} A system impulse response is defined by: h(n) = {1, 2, 1, 0, -1, -2} Compute the output y(n) using the discrete convolution operation in matlab. This assignment is due by 03/20/98. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Matlab Assignment No. 5: - Construct the signal: x(t) = 0.5 exp(-alpha*abs(t)) + 0.25 exp(-beta*abs(t)) For the following constants: alpha = 0.001 beta = 0.005 alpha = 0.0001 beta = 0.0005 Compute and plot the magnitude and phase of the Fourier transform. Use a dB scale for the magnitude, and a linear scale for the frequency. - Demonstrate the use of the Java Spectrum Analysis applet. This assignment is due by 03/06/98. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Matlab Assignment No. 4: - Construct a signal that is the sum of the following: x(t) = 0.5 sin(2*PI*1000*t + PI/3) + 0.25 cos(2*PI*1500t + PI/4) Using whatever tools are available to you in Matlab, compute the Fourier series of this signal. Explain the result. - Construct a squarewave with a period of 1 msec and a duty cycle of 25%. Assume the signal's phase is zero (meaning a period of the signal starts a t=0). Using your Fourier series tool, plot the magnitude of Fourier series coefficients as a function of frequency. Explain the result. This assignment is due by 02/13/98. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Matlab Assignment No. 3: - implement the convolution integral using the symbolic toolbox in matlab demonstrate the convolution of a signal and system - verify this is correct by demonstrating the Java convolution tool to our grader. Draw a signal, draw a system impulse response, convolve them, and explain why the result is correct. - demonstrate to the grader a noncausal system using the convolution tool - demonstrate the concept of time-invariance using the convolution tool This assignment is due by 01/30/98. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Matlab Assignment No. 2: - generate the following signal: x(t) = sin (2 * pi * 1.0 * t + pi/4 ) + sin (2 * pi * 1.5 * t + pi/3) display a plot of the signal from t = [0, 1.0 secs] is is periodic? - generate the following signal: x(t) = sin (2 * pi * t + pi/4 ) + sin (2 * pi * sqrt(2) * t + pi/3) display a plot of the signal from t = [0, 1.0 secs] is it periodic? This will be due by 1/23/98. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Matlab Assignment No. 1: - generate a 1 kHz sinewave with an amplitude of +/- 1V into a vector - plot this signal from t=0 to t=0.1 secs - save the plot to a gif (so that you can import it into your wordprocessor) This will be due by 1/16/98. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-