1. Using MATLAB, Create a vector x of samples of a sinusoidal signal (use cosine wave)...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Using MATLAB, Create a vector x₁ of samples of a sinusoidal signal (use cosine wave) with A1 = 100, 1 = 2n (800), and 1=-/3. Use a sampling rate of 11025 samples/second and compute a total number of samples equivalent to time duration of 0.5 seconds. You may find it helpful to recall that MATLAB statement such as tt- (0:0.01:3); would create a vector of numbers from 0 through 3 with increments of 0.01. Therefore, it is only necessary to determine the time increment needed to obtain 11025 samples in one second. 2. Use soundse (x₁, fs) to play the resulting vector through the D-to-A converter of your computer, assuming that the hardware can support the fs = 11025 Hz rate. Listen to the output. 3. Now create another vector x2 of samples of a second sinusoidal signal (0.5 secs. in duration) for this case A2 = 80, col=2z (1200), and 1=-a/4. Listen to the signal reconstructed from these samples. How does its sound, compare it with the signal in step 2? 4. Add x₁ to x2 to create x3, listen to the signal reconstructed from these samples. How does its sound compare it with the signal in step 3? 5. Concatenate the two signals xl and x2 with a short duration of 0.2 seconds of silence in between. You should be able to use a statement something like: xx = [x1, zeros (1, N), x2]; Assuming that both xl and x2 are row vectors. Determine the correct value of N to make about 0.2 seconds of silence. 6. Verify that the concatenation operation was done correctly in the previous part by making the following plot: tt = (1/11025) (1: length (xx)); plot (tt, xx) This will plot a huge number of points, but it will show the "envelope" of the signal and verify that the amplitude changes from 100 to zero and then to 80 at the correct times. Notice that the time vector tt was created to have exactly the same length as the signal vector xx. 7. Listen to this new signal to verify that it is correct. 8. Now send the vector xx to the D-to-A converter again but change the sampling rate parameter in sounds (xx, fs) to 22050 samples/second. Do not re-compute the samples in xx, just tell the D-to-A converter that the sampling rate is 22050 samples/second. Describe how the duration and pitch of the signal were affected. Explain. 1. Using MATLAB, Create a vector x₁ of samples of a sinusoidal signal (use cosine wave) with A1 = 100, 1 = 2n (800), and 1=-/3. Use a sampling rate of 11025 samples/second and compute a total number of samples equivalent to time duration of 0.5 seconds. You may find it helpful to recall that MATLAB statement such as tt- (0:0.01:3); would create a vector of numbers from 0 through 3 with increments of 0.01. Therefore, it is only necessary to determine the time increment needed to obtain 11025 samples in one second. 2. Use soundse (x₁, fs) to play the resulting vector through the D-to-A converter of your computer, assuming that the hardware can support the fs = 11025 Hz rate. Listen to the output. 3. Now create another vector x2 of samples of a second sinusoidal signal (0.5 secs. in duration) for this case A2 = 80, col=2z (1200), and 1=-a/4. Listen to the signal reconstructed from these samples. How does its sound, compare it with the signal in step 2? 4. Add x₁ to x2 to create x3, listen to the signal reconstructed from these samples. How does its sound compare it with the signal in step 3? 5. Concatenate the two signals xl and x2 with a short duration of 0.2 seconds of silence in between. You should be able to use a statement something like: xx = [x1, zeros (1, N), x2]; Assuming that both xl and x2 are row vectors. Determine the correct value of N to make about 0.2 seconds of silence. 6. Verify that the concatenation operation was done correctly in the previous part by making the following plot: tt = (1/11025) (1: length (xx)); plot (tt, xx) This will plot a huge number of points, but it will show the "envelope" of the signal and verify that the amplitude changes from 100 to zero and then to 80 at the correct times. Notice that the time vector tt was created to have exactly the same length as the signal vector xx. 7. Listen to this new signal to verify that it is correct. 8. Now send the vector xx to the D-to-A converter again but change the sampling rate parameter in sounds (xx, fs) to 22050 samples/second. Do not re-compute the samples in xx, just tell the D-to-A converter that the sampling rate is 22050 samples/second. Describe how the duration and pitch of the signal were affected. Explain.
Expert Answer:
Answer rating: 100% (QA)
The below is the MATLAB code to perform the tasks described 1 Create vector x1 fs 11025 Sampling rat... View the full answer
Related Book For
Discrete Time Signal Processing
ISBN: 978-0137549207
2nd Edition
Authors: Alan V. Oppenheim, Rolan W. Schafer
Posted Date:
Students also viewed these programming questions
-
Emerald Fashion may be a high-end clothing store found in a little Tennessee town. Emerald has only one store, which is found within the shopping locale by the town square. Emerald enjoys the...
-
To take off from the ground, an airplane must reach a sufficiently high speed. The velocity required for the takeoff, the takeoff velocity, depends on several factors, including the weight of the...
-
The functions in Exercises 1128 are all one-to-one. For each function, a. Find an equation for f -1 (x), the inverse function. b. Verify that your equation is correct by showing that f( f -1 (x)) = x...
-
Choose an industry or a specific company that you would like to work for as a salesperson. How would you generate and qualify leads?
-
Zytel Corporation produces cleaning compounds and solutions for industrial and household use. While most of its products are processed independently, a few are related. Grit 337, a coarse cleaning...
-
There are about \(10^{11}\) stars in the Galaxy with mass comparable to the Sun. Determine total mass \(M_{S}\) in the stars and the fraction of the Galaxy mass in the form of interstellar medium...
-
Incomplete inventory and income statement data for Gator Corporation follow. Determine the missingamounts. Cost of Goods Sold Cost of Goods Manufactured $20,000 Beginning Finished Ending Finished...
-
* Installing integrated software needs more memory than installing many .standalone applications True O False
-
Go back and quickly review the rules that the Sarbanes-Oxley Act of 2002 placed on the auditing profession as described in this chapter. What do you think are the two or three main purposes of these...
-
Using the tests for deductibility discussed in Chapter 5, explain why the following expenses may or may not be fully deductible in the current year. (16 points) Antonio is the owner of a restaurant....
-
MacDonald Plumbing is not a small CCPC. It has a December 31 year end. For 2021, its tax payable was $10,000, while for 2022, the amount was $20,000. For 2023, its estimated tax payable is $30,000....
-
You want to start an Coverdell Education Savings Account for your child. Suppose that you contribute $500 each year to this account for 18 years, starting when he or she is born. If you can earn 8%...
-
What's the outlook for Chinese RMB overtaking the U.S. Dollar as the major reserve currency? What do you think?
-
Stephens, Inc currently pays a $3 per share dividend, but is considering eliminating the dividend and using the savings to repurchase shares. Investments of similar risk to Stephens provide an...
-
Your task is to work with Abigail to analyze the situation. You must recommend acceptance or rejection, and evaluate he projects acceptability using the NPV, IRR, modified IRR (MIRR), and payback...
-
Pretax accounting income for the year ended December 31, 2021, was $45 million for Truffles Company. Truffles' taxable income was $62 million. This was a result of differences between straight-line...
-
Presented below are income statements prepared on a LIFO and FIFO basis for Kenseth Company, which started operations on January 1, 2024. The company presently uses the LIFO method of pricing its...
-
The system function of a linear time-invariant system is given by It is known that the system is not stable and that the impulse response is two sided. (a) Determine the impulse response h[n] of the...
-
We wish to design a discrete-time ideal bandpass filter that has a passband /4 /2 by applying impulse invariance to an ideal continuous-time bandpass filter with passband 2(300) 2(600). Specify...
-
Consider a real, anticausal sequence x[n] with discrete-time Fourier transform X(e j? ). The real part of X(e j? ) is Find XI(ej?), the imaginary part of X(ej?). (Remember that a sequence is said to...
-
Explain how the miR-200 family of miRNAs behave as tumorsuppressor genes. What happens when their expression is blocked or decreased?
-
Outline the steps that occur when piRITS or piRISC silences transposable elements by repressing transcription and by directly inhibiting TE RNAs, respectively. What is the role of piRNAs in this...
-
List five types of cancer in which ncRNAs can be involved.
Study smarter with the SolutionInn App