Question: Write a Matlab script that a. Accepts 3 inputs from the user representing the coefficients a, b, and c of the quadratic function: y =

Write a Matlab script that a. Accepts 3 inputs from the user representing the coefficients a, b, and c of the quadratic function: y = ax^2 + bx + c. b. Checks to make sure a notequalto 0: and if it is, terminates the program. c. Uses the quadratic formula to calculate and display the roots of the function. d. Plots the resulting parabola. e. If both roots are real, plots their locations on the same graph (See Below)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
