Compute the power spectral density vector

Assignment Help MATLAB Programming
Reference no: EM134581

Exercise 1

In this exercise we will explore the discrete Fourier transform (DFT) and the fast Fourier transform (FFT).

(a) Compute the DFT matrix F for a signal that has 59 elements.

(b) Use this DFT matrix to compute the vector of frequencies ^ x = Fx corresponding to a measurement vector x given by the rst 59 odd numbers.

(c) Use the FFT command to compute the same vector of frequencies.

Exercise 2

Now, we will use the FFT to simultaneously compress and re-master an audio le.

(a) Listen to the audio signal (>>sound(rush,FS);). Compute the FFT of this audio signal.

(b) Compute the power spectral density vector. Plot this to see what the output looks like.

(c) Plot the spectrogram using the same parameters as in lecture. Don't save any les.

(d) Now, download r2112noisy.m and run this script to initialize the variable rushnoisy. This signal is corrupted with high-frequency artifacts. Manually zero the last 3/4 of the Fourier components of this noisy signal (if n=length(rushnoisy), then zero out all Fourier coefcients from n/4:n). Use this ltered frequency spectrum to reconstruct the clean audio signal. When reconstructing, be sure to take the real part of the inverse Fourier transform:

cleansignal=real(ifft(filteredcoefs));.

Because we are only keeping the rst 1/4 of the frequency data, you must multiply the reconstructed signal by 2 so that it has the correct normalized power. Be sure to use the sound command to listen to the pre- and post- ltered versions. If you are interested, look at the power spectral density and spectrograms of the pre- and post- ltered signals.

Exercise 3-In this exercise you will be using fminsearch and function handles to nd the minimum value of a function called myfunc(x,a,b) with respect to the variable x. Download, but do not upload, the le myfunc.m from the course website. There is another, di erent version of myfunc.m that your code will interact with on compsoftbook; it has the same inputs and outputs.

(a) For a=1 and b=2, evaluate the function for x values from 1 to 2 in increments of 0:1.

(b) Use fminsearch to nd the x value that minimizes the function for a=3 and b=-3. Use an initial guess of x=0. Also evaluate the function at this x. ANSWERS: Save these two values as a row vector in A8.dat.

Reference no: EM134581

Questions Cloud

Compute the horizontal distance the ball : Compute the horizontal distance the ball
What is the net entropy change : What is the net entropy change
Role of cellular signaling in cancer formation : Apoptosis and the Hayflick limit and their relationship to cancer formation
What is size of the gravitational force on the moon : What is size of the gravitational force on the moon
Compute the power spectral density vector : Compute the power spectral density vector. Plot the spectrogram using the same parameters as in lecture.
What is the muzzle velocity : What is the muzzle velocity
What is the speed of bulky cart after the collision : What is the speed of bulky cart after the collision
What is the coefficient of static between crate and incline : What is the coefficient of static between crate and incline
Patients post cardiac bypass surgery : Monitor Renal Outcomes in patients post cardiac bypass surgery?

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

  Linear support vector machine svm

Write a computer program to prepare a Linear Support Vector Machine SVM.

  Write project report and provide cross-synthesis

Write project report and provide Cross-synthesis.

  Filtering – biomedical application

Prepare a filter that removes noise produced by electronic medical equipment.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Import the data into matlab and name the array ace_data

Parameter is related to the energy of the storm, since kinetic energy is proportional to velocity squared. However, it does not take into account the size of the storm, which would be necessary for a true total energy estimate.

  Design and fir filter in matlab

What does the pole-zero diagram tells you about the filter

  Determine the stability status for the digital system

Sketch the z-plane pole-zero plot and determine the stability status for the following digital system.

  Plot way forms for the subsequent modulation schemes

Plot way forms for the subsequent modulation schemes using Matlab

  An efficient human identification using gait analysis

An Efficient Human Identification Using Gait Analysis, Apply specific approach for Pattern Recognition,Implement this approach in MATLAB,Compare and discuss the results with others.

  Finds the value of a using a numerical method

Finds the value of a using a numerical method

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd