Question: Can you please program this is Matlab, Thank you, Consider the following function ft), where time t is measured in seconds: f(t)-10cos(50t -1.2)cos(120t +1.6) Look

Can you please program this is Matlab,

Thank you,

Can you please program this is Matlab, Thank you, Consider the following

Consider the following function ft), where time t is measured in seconds: f(t)-10cos(50t -1.2)cos(120t +1.6) Look up the formula for turning the product of two sinusoids into the sum of two sinusoids. Write a MATLAB script that will graph all three functions on one figure, i.e., ftt) and the two sinusoids whose sum is equal to f(t), from t 0 to t-200ms. Think about how you can compute the three functions efficiently. There are two checks: (1) Construct a "checking" function that should be an array of zeroes if the two sinusoids are correct. Plot this function on the same figure as the other three functions. (2) Use the ABS (absolute value) and SUM functions to compute a single number that should be close to zero if all of the elements of the "checking" function are close to zero. Comment in your script why you think you are using the ABS function, rather than using only the SUM function, and output this value to the Command Windoww. Make sure there is a proper legend, a meaningful title, and axis labels on your figure. Spread out the vertical axis to make room for the legend. Think about how to make sure the font sizes are appropriate to the size of the figure. Consider the following function ft), where time t is measured in seconds: f(t)-10cos(50t -1.2)cos(120t +1.6) Look up the formula for turning the product of two sinusoids into the sum of two sinusoids. Write a MATLAB script that will graph all three functions on one figure, i.e., ftt) and the two sinusoids whose sum is equal to f(t), from t 0 to t-200ms. Think about how you can compute the three functions efficiently. There are two checks: (1) Construct a "checking" function that should be an array of zeroes if the two sinusoids are correct. Plot this function on the same figure as the other three functions. (2) Use the ABS (absolute value) and SUM functions to compute a single number that should be close to zero if all of the elements of the "checking" function are close to zero. Comment in your script why you think you are using the ABS function, rather than using only the SUM function, and output this value to the Command Windoww. Make sure there is a proper legend, a meaningful title, and axis labels on your figure. Spread out the vertical axis to make room for the legend. Think about how to make sure the font sizes are appropriate to the size of the figure

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!