Downsampling and upsampling a discrete-time

Assignment Help MATLAB Programming
Reference no: EM13865707

In this MATLAB exercise, we will explore downsampling and upsampling a discrete-time signal corresponding to a piece of music. To start, type load handel. In your workspace, you should now have a vector y of length 73113. Play this piece of music using sound(y).

(a) Compute the DFT of y and plot its magnitude. For all DFTs in this problem use an f ft of size length Cy).

(b) Write a simple piece of code to downsample y by 2. This should generate a vector yds of length 36557, composing of just the odd-indexed (in MATLAB terminology) elements of y. Compute and plot the DFT of yds. How does that compare to the DFT of y? Play yds using sound(yds). In what way does this piece of music differ from the original?

(c) Now let us start the process of upsampling yds. Insert zeros between every pair of samples of yds. This should generate a vector yusl of length 73113. Play this signal and comment on what you hear. Plot the magnitude of its DFT. How does this spectrum compare with the previous spectra?

(d) Now let us complete the upsampling process by applying an ideal low-pass filter on yust Use an ideal filter that passes all frequencies smaller in magnitude than 7r/2. Call the resulting signal yus. Play yus and compare what you hear with all the previous signals you heard. Plot the magnitude of the DFT of yus. Compare this spectrum with the previous spectra. Do the spectra you have plotted in this exercise agree with what you have learned in class about the spectra associated with upsampling and downsampling operations? Explain.

Attachment:- 545251_1_audio-upsampling-example.m

Reference no: EM13865707

Questions Cloud

Describe the ethical responsibilities of tony cupertino : Identify the stakeholders in this case. Identify their interests and United obligations to satisfy those interests from an ethical perspective Describe the ethical responsibilities of Tony Cupertino as a CPA and CIA. How do these responsibilities eff..
Why does churchill argue that these other mascots : At least on the surface, the names, "Braves", "Indians", and "Chiefs" would not seem to be as insulting to Native American as the "Redskins" mascot. Why does Churchill argue that these other mascots, too, are examples of "blatant racism", and to..
What is the difference between the output level : What is the difference between the output level where the total profit is maximized and the output level where the total revenue (TR) is
Capital budgeting company assignment : Capital Budgeting Company Assignment Look up the capital expenditures for your assigned company over the last 2 years and answer the following questions. Note that information about capital expenditures can be found in your company's 10K report
Downsampling and upsampling a discrete-time : In this MATLAB exercise, we will explore downsampling and upsampling a discrete-time signal corresponding to a piece of music. To start, type load handel. In your workspace, you should now have a vector y of length 73113. Play this piece of music ..
Construct the base projected profit : Grandview clinic has fixed costs of $2 million and an average variable cost rate of $15 per visit. its sole payer, an hmo, has proposed an annual capitation payment of $150 for each of its 20,000 members. past experience indicates the population serv..
When compared to a company like alcoa : Comment on the lawsuits described above and whistle-blowing with respect to Amgen values statement. What message do you get about what drives Amgen operations when compared to a company like Alcoa and its values statement discussed in the chapter?
Systolic blood pressure and cholesterol : Determine whether there is a statistically significant difference in systolic blood pressure between smokers and non-smokers and summarise graphically the total blood cholesterol data for males and for females.
Define a new program or an existing program? : Is this a new program or an existing program?

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  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

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

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