Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: User Defined Function to solve quadratic equation
Date: Sun, 25 Mar 2012 21:36:11 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 10
Message-ID: <jko34b$evc$1@newscl01ah.mathworks.com>
References: <jknmh7$98r$1@newscl01ah.mathworks.com> <jknnu8$d1r$1@newscl01ah.mathworks.com> <jko0hr$7oo$1@newscl01ah.mathworks.com> <jko22j$btv$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-00-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1332711371 15340 172.30.248.45 (25 Mar 2012 21:36:11 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 25 Mar 2012 21:36:11 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3401008
Xref: news.mathworks.com comp.soft-sys.matlab:762143

"Roger Stafford" wrote in message <jko22j$btv$1@newscl01ah.mathworks.com>...
> "colleen Lischwe" wrote in message <jko0hr$7oo$1@newscl01ah.mathworks.com>...
> > That is a great idea, but for this script I have to follow an algorithm that abides by the parameters of the assignment :(  I appreciate your advice, however!
> > ......
> - - - - - - - - -
>   My advice to you was to not base the decision on the discriminant but on the final roots you obtain (whatever method you use to get them.)  Use matlab's 'imag' function.  That should surely "abide by the parameters of the assignement."
> 
> Roger Stafford

Thanks!