Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions