Please help! It is supposed to be done in MATHLAB. Thanks. Consider the function
ID: 3027931 • Letter: P
Question
Please help! It is supposed to be done in MATHLAB. Thanks.
Consider the functions f(x) = 1/4 sin^2 (x) + 1 g(x) = 1/2 sin (x) cos (x) Create a vector of points from (-2 pi, 2 pi) with 200 points and name it xx Create a two vectors named y1, y2 and store the values of f(xx), g(xx) to these vectors, respectively Plotting the two different curves on the same axis Plot both functions on the same axis with the following plot specifications Plot f(x) using red dash-dotted lines. Plot p(x) using a blue solid line Label the x and y axis Include a legend to determine what curve represents what function Include a title to the plot: Quiz 3 Plot Publish to pdf Email ONLY the pdf file to your TA by the deadline she/be provides to you. The email subject line must include: Student name and quiz number, tutorial day.Explanation / Answer
Solution :- Here is the Matlab code for the graph of two curves on the same graph.
=================================================================
This is the other method.