Question: Matlab Problems: Use the following codes, and answer the questions %paremeter setting A= 1; %Amplitude f = 1; %frequency P = 0; %Phase time =

 Matlab Problems: Use the following codes, and answer the questions %paremeter

Matlab Problems: Use the following codes, and answer the questions %paremeter setting A= 1; %Amplitude f = 1; %frequency P = 0; %Phase time = 1.5; %time duration N = 1000; %sampling number t = 0:time / (N-1):time ; %Generate sin wave s-A*sin (2*pi*f*t+P) Draw figure plot (t,s) grid on xlabel ('Time') ylabel ('Amplitude) M3 (10): Musical notes Generate all the musical notes in problem 2 with the same amplitudes and phases. Change the N Question 10000 Put all the musical notes in one vector and use function sound (y) to play the sound. Include your code. 1. 2. Play the sound [E.E.F.G,G.F.E,D.C,C.D,E,E D,D] problem 2 Note Frequency 264 Frequency Difference Wavelength1.25 297 330 352 396 440 495 528 1.11 0.93 0.83 0.75 0.66 0.63

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!