Question: This problem is using MATLAB. 1. Given the sinusoid signal y1(t)=Acos(2f0t)+Bsin(2f0t) from class, we know it may also be written as y2(t)=Ccos(2f0t+) where C=A2+B2=tan1(B/A) That

 This problem is using MATLAB. 1. Given the sinusoid signal y1(t)=Acos(2f0t)+Bsin(2f0t)

This problem is using MATLAB.

1. Given the sinusoid signal y1(t)=Acos(2f0t)+Bsin(2f0t) from class, we know it may also be written as y2(t)=Ccos(2f0t+) where C=A2+B2=tan1(B/A) That is, using (2) and (3), y1 and y2 are equal. Write a function named "funsinusoidConvert" that: a) accepts A,B, and f0 as an input and returns C,,t, and y as an output where t and y are column vectors containing 200 points; b) plots y1(t) and y2(t) over 2 cycles using 200 data points on the same subplot and y1(t)y2(t) on a second subplot. The plots should look like below: Write a script that executes the function for the cases {A=3,B=2,f0=60Hz} and {A=70,B=50,f0=0.25Hz}

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!