Question 2 (3.75 pts) 1. Write a MATLAB code to Plot the function y = 2X3+ 19X - 5, and its first and second derivatives
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Question 2 (3.75 pts) 1. Write a MATLAB code to Plot the function y = 2X3+ 19X - 5, and its first and second derivatives
Question 2 (3.75 pts) 1. Write a MATLAB code to Plot the function y = 2X3+ 19X - 5, and its first and second derivatives, for -1 ≤ x ≤ 5, all in the same Figure. 2. Using a red solid line color for the function f and blue dash line for the first derivative and black dotted line for the second derivative. 3. Add axis labels to the graph 4. Add legend