Question: MATLAB i have created user defined function called HW05roots that calculated roots of equation for example roots of x^2 + 5x + 6 =0 are
MATLAB
i have created user defined function called HW05roots that calculated roots of equation
for example roots of x^2 + 5x + 6 =0 are r1 = -2 and r2 = -3
im looking to write if statement that displays no postive roots for this quadratic equation if both or one roots is negative, else if postive it displays the postive root or roots
thanks
clear HW05roots (a,b, c) disp ('No postive roots for this quadratic equation) else en
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
