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

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

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!