Exercise 1 in this exercise we will explore the discrete

Assignment Help Applications of MATLAB
Reference no: EM13350626

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: EM13350626

Questions Cloud

Question1though you are sitting on a park bench with your : question1though you are sitting on a park bench with your friend you take hold of his hat and start running in a
Questionan insulated thermos contains 149 g of water at 71 : questionan insulated thermos contains 149 g of water at 71 c. you place in a 10.7 g ice cube at 0 c to form a system of
Write paper on given topicstopics-apoptosis and the : write paper on given topicstopics-apoptosis and the hayflick limit and their relationship to cancer formation-role of
Question1two charged pith balls are suspended on extremely : question1two charged pith balls are suspended on extremely light 102 strings. each has a mass 10g. in stability the
Exercise 1 in this exercise we will explore the discrete : exercise 1 in this exercise we will explore the discrete fourier transform dft and the fast fourier transform fft.a
Question1a rifle is expected horizontally at a target 28m : question1a rifle is expected horizontally at a target 28m away. the bullet hits the target 2.7 cm below the aiming
Question1an airplane starting from airport a flies 300 km : question1an airplane starting from airport a flies 300 km east then 305 km at 24.5deg west of north and after that 150
Question1a particle is uncharged and is thrown : question1a particle is uncharged and is thrown perpendicularly upward from ground level with a speed of 23.7 ms. as a
Monitor renal outcomes in patients post cardiac bypass : monitor renal outcomes in patients post cardiac bypass surgery?want to identify factors which influence aki post

Reviews

Write a Review

Applications of MATLAB Questions & Answers

  Question 1sketch the z-plane pole-zero plot and determine

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

  Apply specific approach for pattern recognitionimplement

apply specific approach for pattern recognition.implement this approach in matlab.compare and discuss the results with

  Fingerprint watermarking techniquesin this we need to

fingerprint watermarking techniquesin this we need to investigate the best method to embed watermark image into

  If a is an m by n rectangular matrix with m gt n and if c

if a is an m by n rectangular matrix with m gt n and if c is a vector with n components then a c y can not usually be

  Write a computer program to prepare a linear support vector

write a computer program to prepare a linear support vector machine svm. your program could be able to incorporate and

  1 we know that there is a symmetry in the rod so the point

1. we know that there is a symmetry in the rod so the point at 0.2 must be equal to the point at 0.8 but the output was

  Create the following graph which contains a piecewise

create the following graph which contains a piecewise function where a line exists in the first interval a parabola in

  Write a matlab function speed planetary n emesh first last

write a matlab function speed planetary n emesh first last arm that computes the speed of a given link in a

  Exercise 1 this le contains two arrays a and b each of

exercise 1 this le contains two arrays a and b. each of these arrays contains a number of 50 50 grayscale images of

  Questiondetails areimpact of zigbee on telecommunication

questiondetails areimpact of zigbee on telecommunication systems. in this report need to either do some measurement or

  Prepare a pipe network system that transfers water from the

prepare a pipe network system that transfers water from the upper pipe to the lower pipe. note that figure is a plan

  1 let pnx be the lagrange interpolating polynomial of

1. let pnx be the lagrange interpolating polynomial of degree at most n that satis?es pnxi yi i 0 1 2 . . . n.write

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