Question: 1) Build a MATLAB function to solve the quadratic equation with variable x using where the number of outputs is two value and the input

1) Build a MATLAB function to solve the quadratic equation with variable x using where the number of outputs is two value and the input is one value as a vector. For example: ax2+bx+c=0; the inputs will be [a b c] The results will be x1,x2 x1,x2=2abb24acEq(1) 2) Then check your script file by this equation x2+10x+9 to obtain x1 and x2 and check your answer using roots commands 3) Plot the above equation (Using polyval commands) within this interval x1x x2 where x1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
