Question: please answer in MATLAB and provide the code please orgainze the two problems properly thank you Write an user defined function that determines the real

Write an user defined function that determines the real roots of a quadratic equation ax2+bx+c=0. Use the following structure for your function: [] = quadraroots (a,b,c). To calculate the roots of the equation, the program calculates the discriminant D, given by: D=b24ac If D>0 the program displays "The equation has two roots and " and calculates them using x1=2ab+Dx2=2abD If D=0, the program displays "The equation has one root .", and calculate it using x1=2ab If D
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
