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

  You will write functionsbull bnull basisatolbull brange

you will write functionsbull bnull basisatolbull brange basisatolthe function null basis takes a matrix a as input and

  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

  Please write project report and provide cross-synthesis an

please write project report and provide cross-synthesis. an interesting effect in electronic music synthesis is to

  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

  For instance consider the tour of australian state and

for instance consider the tour of australian state and territory capital cities along with a couple of extras cities to

  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

  P1 write the commands that will create the following matrix

p1 write the commands that will create the following matrix. you can use only special matrix commandsp2 two cars

  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

  1 given the following actual cpu burst for a tasknbsp 6 4 6

1. given the following actual cpu burst for a tasknbsp 6 4 6 4 13 13 13 and an initial best guess at the burst as 10

  Questiondetails areimpact of zigbee on telecommunication

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

  Problem 1a barometer is used to measure atmospheric

problem 1a barometer is used to measure atmospheric pressure and is filled with a high-density fluid. the pressure p

  Exercises1make a program that will graph the following

exercises1.make a program that will graph the following parabolas where x ranges from -10 to 10 in increments of 0.1.

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