Path: news.mathworks.com!not-for-mail
From: "David Doria" <daviddoria@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: blank ezplot?
Date: Mon, 2 Nov 2009 14:28:14 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 23
Message-ID: <hcmq9u$818$1@fred.mathworks.com>
References: <hcf35b$5ce$1@fred.mathworks.com>
Reply-To: "David Doria" <daviddoria@gmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257172094 8232 172.30.248.38 (2 Nov 2009 14:28:14 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 2 Nov 2009 14:28:14 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1105197
Xref: news.mathworks.com comp.soft-sys.matlab:581832


"David Doria" <daviddoria@gmail.com> wrote in message <hcf35b$5ce$1@fred.mathworks.com>...
> If I have this function:
> function PlotPolynomialClassifier(W)
> syms x;
> syms y;
> f = W(1) + W(2) * x + W(3) * y + W(4) * x^2 + W(5) * y^2; %doesn't work
> %f = W(1) + W(2) * x + W(3) * y + W(4) * x^2; %works
> ezplot(f);
> 
> When I call it with this vector:
> a=[62 -1.8 38 .01 18];
> 
> it produces an empty plot. I used solve(f,y) =  ((648*x)/5 - (18*x^2)/25 - 3020)^(1/2)/36 - 19/1 to see if there are any problems with the function (divide by zero or something like that) but it doesn't look like it.
> 
> Does anyone know why this would be producing an empty plot?
> 
> Thanks,
> 
> Dave

Any thoughts?

Dave