Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
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
Write a MATLAB code using "for" loop to compute y when n = 50,100 and 1000.
Write a user-defined MATLAB function that calculate the condition number of an (nxn) matrix by using the 1-norm. for the function name and arguments use c = condNum_one(A).
1.) Write a MATLAB m-script that will generate a damped sinusoid (frequency = 440 Hz) with a time constant of 0.25 sec. Set the time axis for 0 to 6 time constants.
Question: Recall the velocity of the falling parachutist can be computed by V(t) = gm(1-e -c/mx )/c, Use first order error analysis to estimate the error of v at t=6. If g=9.8 and m=50 but c=12.5 +_ 1.5
Write a program for a child's rectangle play yard is to be built next to the house. To make the three sides of the play-pen, twenty-four meters of fencing are available.
dydt te3t - 2y 0 le t le 1 y0 0approximate the solution to the above initial value problem usinga modified-euler
To design a "custom" controller to reduce the vibrations of the seat and a PID controller to reduce the vibration of the seat
Propose a method that would allow estimation of the Rayleigh limit experimentally - Rayleigh frequency resolution limit
Use MATLAB to write a single program that calculates the geometric mean, RMS average and harmonic mean for a set of numbers. Compare these values for each of the following sets of number.
Write a program to calculate the geometric mean of numbers entered by a user. The program should prompt the user to enter numbers and continue to accept the numbers until the user enters 999.
In this simulation we are going to explore the design of a recursive digital filter which might be usedvin a digital radio station. The sampling frequency used in digital radio (DAB) is either 48 kHz or 24 kHz and for the purposes of this simulation,
Create a MATLAB program which will determine your vehicle fuel usage (MPG, miles/gallon) rating for a user defined number of trips ('for' repetition structure).
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!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd