Question: USE MATLAB TO DO THIS ! Given a quadratic equation of the following form, where a , b and c are constant coefficients: f (

USE MATLAB TO DO THIS !
Given a quadratic equation of the following form, where a,b and c are constant
coefficients:
f(x)=ax2+bx+c
Write a local function that will output the following 3 items on the same graph: 1) the quadratic
equation f(x),2 the line of tangent to f(x) with a slope provided by the user, and 3) the intersection point
(between the line of tangent and the quadratic equation). The function will accept two input arguments:
a vector that consists of the coefficients of a quadratic equation, and the slope of a line (m). An error
message will be displayed if the input vector has too many or not enough elements. The function will
work for any quadratic equations. The output graph will be structured such that the x-coordinate of the
intersection point will always be displayed at the middle of the x-axis. [ Note: the "solve" command
and symbolic toolbox cannot be used. Loops can be used if necessary.]
Start with the function definition shown below.
See the following example:
Inputting the following in the Command Window will display the graph in Fig. 1
 USE MATLAB TO DO THIS ! Given a quadratic equation of

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!