3. Create a file named toneA.m with the following MATLAB code: clear all FS-8000; Ts=1/Fs; t=[0:...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
3. Create a file named "toneA.m" with the following MATLAB code: clear all FS-8000; Ts=1/Fs; t=[0: Ts: 2]; F_A=440; A sin (2 pi*F_A*t); sound (A, Fs); Type tone at the command line and then answer the following: (a) What is the value of Ts? What does Ts represent? (b) "A=- Modify toneA.m by changing "A-sin (2 pi*F_A*t)" to sin (2 pi*F_A*t)". Can you hear any difference? (c) The frequencies of notes B, C#, D, E and F# are 493.88 Hz, 554.37 Hz, 587.33 Hz, 659.26 Hz and 739.99 Hz, respectively. Write a MATLAB file named "song.m" to produce a piece of music with notes in the following order: A, A, E, E, F#, F#, E, E, D, D, C#, C#, B, B, A, A. Assign the duration of each note as 0.3s. Frequency of note A is 440 Hz 3. Create a file named "toneA.m" with the following MATLAB code: clear all FS-8000; Ts=1/Fs; t=[0: Ts: 2]; F_A=440; A sin (2 pi*F_A*t); sound (A, Fs); Type tone at the command line and then answer the following: (a) What is the value of Ts? What does Ts represent? (b) "A=- Modify toneA.m by changing "A-sin (2 pi*F_A*t)" to sin (2 pi*F_A*t)". Can you hear any difference? (c) The frequencies of notes B, C#, D, E and F# are 493.88 Hz, 554.37 Hz, 587.33 Hz, 659.26 Hz and 739.99 Hz, respectively. Write a MATLAB file named "song.m" to produce a piece of music with notes in the following order: A, A, E, E, F#, F#, E, E, D, D, C#, C#, B, B, A, A. Assign the duration of each note as 0.3s. Frequency of note A is 440 Hz
Expert Answer:
Answer rating: 100% (QA)
Certainly Here are the answers to your questions and the modified code for the MATLAB files a The va... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
26) Explain the concept of depreciation. Include in your discussion one common misconception regarding depreciation and its impact on the finances of a business. 27) For each of the independent...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Use the attached "words.txt" file to store the words along with their ranks in an AVL tree. Then provide the user the option to search for any word. If the word exists the program displays the rank...
-
Use normal job-order costing to calculate the balance in the ending Work-in-Process account and the Cost of Goods Sold account on 31 December 20X3 after any necessary adjustment(s). Sweet Memories...
-
A cord having a weight density and a total length L is suspended over a peg P as shown. If the coefficient of static friction between the peg and cord is s, determine the longest length h which one...
-
Identify emerging problems related to financial statement fraud and other fraudulent activities carried out by publicly traded companies, including those highlighted by the PCAOB. Consider the...
-
Audience Scores on Rotten Tomatoes The variable AudienceScore in the dataset HollywoodMovies gives audience scores (on a scale from 1 to 100) from the Rotten Tomatoes website. The five number summary...
-
Go-for-Broke Company is being liquidated under Chapter 7 of the bankruptcy code. When it filed for bankruptcy, its balance sheet was as follows: *All accrued wages must be paid out of the liquidation...
-
Information of call and put options of Tencent (00700.hk) on 1 April 2022 shown as the table. Tencent's stock price is trading at $385.00 Both call and put options will be expired on 28 April 2022....
-
Premier Consultings two consultants, Avery and Baker, can be scheduled to work for clients up to a maximum of 160 hours each over the next four weeks. A third consultant, Campbell, has some...
-
Pete's Pizza Sells only pepperoni pizzas for $10 a pie. Fixed Costs Labor $1,500 Rent $3,000 Variable Costs Flour $.50 Yeast $.50 Insurance $200 Water $.01 Advertising $500 Cheese $3.00 Utilities...
-
Naihui and Haiyan deposit \($250\) into their joint account at the end of each month. They want to have a total of \($12\),000 in their account after 40 months. a. What monthly rate of interest must...
-
David and Tami deposit \($150\) into their joint account at the end of each month. If their account earns 6 percent per year compounded quarterly, how long will it take them to have a total of...
-
You have your eyes on a new automobile costing \($25\),000. If you wrote a check for the \($25\),000, you could drive off in your new car. However, you dont have it and must finance \($20\),000...
-
Deposits are made at the end of years 1 through 7 into an account paying 6 percent per year interest. The deposits start at \($5\),000 and increase by \($1\),000 each year. How much will be in the...
-
A famous high-volume calculus text generates royalties beginning with $60,000 in the first year and declining each year by 40 percent of the previous year due to used sales and competition. The...
-
What is the difference between job design and job analysis? A. Job analysis focuses on attracting talented candidates,whereas job design is about changing jobs to avoid legalchallenges. B. Job design...
-
As water moves through the hydrologic cycle, water quality changes are common because of natural phenomena or anthropogenic pollution. Using Figure 11.1, describe how water-quality changes occur...
-
Bea Jones (age 32) moved from Texas to Florida in December 2011. She lives at 654 Ocean Way, Gulfport, FL 33707. Bea's Social Security number is 466-78-7359 and she is single. Her earnings and income...
-
Patty Bayan is a single taxpayer living at 543 Space Drive, Houston, TX 77099. Her Social Security number is 466-33-1234. For 2012, Patty has no dependents, and her W-2 from her job at a local...
-
Cypress Corporation has regular taxable income of $170,000 (assume annual gross receipts are greater than $5 million) and regular tax liability of $49,550 for 2012. The corporation also has tax...
-
A \(1.0-\mathrm{cm}\)-tall object is \(60 \mathrm{~cm}\) in front of a diverging lens that has a \(-30 \mathrm{~cm}\) focal length. Calculate the image position and height.
-
A 3.0-cm-tall object is \(15 \mathrm{~cm}\) in front of a convex mirror that has a \(-25 \mathrm{~cm}\) focal length. Calculate the image position and height.
-
A \(3.0-\mathrm{cm}\)-tall object is \(45 \mathrm{~cm}\) in front of a convex mirror that has a \(-25 \mathrm{~cm}\) focal length. Calculate the image position and height.
Study smarter with the SolutionInn App