Question: 1. Write a MATLAB m-file to plot two sine waves on one graph, one with an amplitude of 1 and a frequency of 1 MHz
1. Write a MATLAB m-file to plot two sine waves on one graph, one with an amplitude of 1 and a frequency of 1 MHz (106 Hz) and the other with an amplitude of 2 and a frequency of 2 MHz. Your graph should show at least 2 periods of each wave, and should include axis labels, title and legend.
A sine wave is given by sin(2(pi)ft), where f is the frequency in Hz. Remember the period of the wave is 1/f. You will need to figure out the appropriate time scale for the frequencies given. Ask if you are not sure about this!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
