Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB i have created user defined function called HW05roots that calculated roots of equation for example roots of x^2 + 5x + 6 =0 are

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Perform an Internet search. Discuss a company that uses EPLI.

Answered: 1 week ago

Question

How do you feel about employment-at-will policies? Are they fair?

Answered: 1 week ago