Question: 1. Write a MATLAB function TrigFun that returns value of a function given by the equation f(x) = a cos(w1x) + a2 sin(w2x) at


1. Write a MATLAB function TrigFun that returns value of a function 

1. Write a MATLAB function TrigFun that returns value of a function given by the equation f(x) = a cos(w1x) + a2 sin(w2x) at given a1, a2, W1, W2, and x. The list of input parameters of function TrigFun should include only three parameters: array a = [a1, a2], array w = value x. [W1, W2], and 2. Prepare a script that uses TrigFun to plot values of f(x) in the interval 0 x 10 with equal spacing Ax 0.05 at a = 1, a2 = 0.25, w = , w = 4 =

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 Programming Questions!