Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask MATLAB Expert

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.

MATLAB, Engineering

  • Category:- MATLAB
  • Reference No.:- M9134992
  • Price:- $60

Priced at Now at $60, Verified Solution

Have any Question?


Related Questions in MATLAB

Suppose that a student has the option of enrolling for a

Suppose that a student has the option of enrolling for a single elective during a term. The student must select a course from a limited list of options: "English, " "History, " "Biology, " "Computer, " or "Math." Constru ...

Assignment matlab programmingusing appropriate matlab

Assignment: MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

Discrete optimisation- solve the following two problems

Discrete Optimisation - Solve the following two problems with both exhaustive enumeration and branch and bound - Problem 1 is a mixed integer linear optimisation problem (the problem has both discrete and continuous vari ...

Assignment details -need to write a code for connecting

Assignment Details - Need to write a code for connecting segments (Lines) a special case of TSP. The problem is to connect lines in 2d/ 3d space with path obstructions. Can you help me write the code for this? Hope you m ...

Question - verify the attached paper with matlab and get

Question - Verify the attached paper with matlab and get all the results in the paper and explain step by step the matlab code. Paper - Improving Massive MIMO Belief Propagation Detector with Deep Neural Network. Attachm ...

Assignment -data is given on which want to do computational

Assignment - Data is given on which want to do computational production planning using Metaheuristic MATLAB Programming: 1) Ant Colony Algorithm on both Partial and Total Flexible Problem. 2) Bee Algorithm on both Partia ...

Lab assignment - matlab matrix relationallogical operators

Lab Assignment - MATLAB Matrix, Relational/Logical Operators and Plotting This laboratory exercise/assignment will involve you 1) practicing multiplication operators in MATLAB; 2) practicing relational and logical operat ...

Assignment -we have daily gridded rainfall data of 40 years

Assignment - We have daily gridded rainfall data of 40 years and structure of the dataset is like below; Lat = [6.5:0.25:38.5]; Lon = [66.5:0.25:100]; Rainfall (135x129x365x40) (Lon, Lat, days, years). Now, we looking fo ...

Recitation problems -1 determine the highest real root of

Recitation Problems - 1. Determine the highest real root of f(x) = 2x 3 - 11.7x 2 + 17.7x - 5 using the Newton-Raphson method with at least four iterations. Start with an initial guess of x 0 = 3. 2. Determine the real r ...

Prepare a 3 - 10 pages long reportprepare a presentation

Prepare a 3 - 10 pages long report Prepare a presentation with 5 - 9 slides. The slides will include introduction (need and similar work), theoretical background (tested neural networks), Data, Results (Comparison of the ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As