Question: please do this problem in MatLab Code In this problem, you will find the intersections of a line and a polynomial using logical functions. The

please do this problem in MatLab Code
please do this problem in MatLab Code In this problem, you will

In this problem, you will find the intersections of a line and a polynomial using logical functions. The equations for the line and the polynomial are given below: y1=3x+15y2=x3+3x2x+9 a) Create the variable x that goes from 5 to 5 in increments of 0.02. Plot the line in green and the polynomial in blue on the same plot. Make sure to scale the axes accordingly b) Using logical functions, find the indices of the intersection points of the line and polynomial. There should be 3 places where the line and the polynomial intersect. Since the line and the polynomial do not have an exact intersection point due to the coarseness of the x array; you will have to find where the tolerance between the line and the parabola is less than 0.09. c) Display the 3 intercept locations ( x and y coordinates) in the Command Window using fprintf. The coordinates should be displayed with a precision of hundredths. d) Plot the locations of the intercepts with red circles on the figure created in Part A. Give the plot a title, x-axis label, y-axis label, and create a legend in the bottom right corner

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