Question: DO IN MATLAB PLEASE Plot the function f(x) = sin2(x) cos(2x) and its derivative f(x) = -2 sin2(x) sin(2x) + sin(2x) cos (2x), both on
DO IN MATLAB PLEASE
Plot the function f(x) = sin2(x) cos(2x) and its derivative f(x) = -2 sin2(x) sin(2x) + sin(2x) cos (2x), both on the same plot, for 0 x 2 with 0.01 spacing (x = [0:0.01:2*pi]). Plot the function with a solid red line and 2 points line width, and the derivative with a dashed green line. Add a legend and title (Title: f(x) vs. x and f(x) vs. x) and label the axes.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
