<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264576</link>
    <title>MATLAB Central Newsreader - blank ezplot?</title>
    <description>Feed for thread: blank ezplot?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 30 Oct 2009 16:10:19 -0400</pubDate>
      <title>blank ezplot?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264576#690996</link>
      <author>David Doria</author>
      <description>If I have this function:&lt;br&gt;
function PlotPolynomialClassifier(W)&lt;br&gt;
syms x;&lt;br&gt;
syms y;&lt;br&gt;
f = W(1) + W(2) * x + W(3) * y + W(4) * x^2 + W(5) * y^2; %doesn't work&lt;br&gt;
%f = W(1) + W(2) * x + W(3) * y + W(4) * x^2; %works&lt;br&gt;
ezplot(f);&lt;br&gt;
&lt;br&gt;
When I call it with this vector:&lt;br&gt;
a=[62 -1.8 38 .01 18];&lt;br&gt;
&lt;br&gt;
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.&lt;br&gt;
&lt;br&gt;
Does anyone know why this would be producing an empty plot?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
&lt;br&gt;
Dave</description>
    </item>
    <item>
      <pubDate>Mon, 02 Nov 2009 14:28:14 -0500</pubDate>
      <title>Re: blank ezplot?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264576#691505</link>
      <author>David Doria</author>
      <description>&quot;David Doria&quot; &amp;lt;daviddoria@gmail.com&amp;gt; wrote in message &amp;lt;hcf35b$5ce$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; If I have this function:&lt;br&gt;
&amp;gt; function PlotPolynomialClassifier(W)&lt;br&gt;
&amp;gt; syms x;&lt;br&gt;
&amp;gt; syms y;&lt;br&gt;
&amp;gt; f = W(1) + W(2) * x + W(3) * y + W(4) * x^2 + W(5) * y^2; %doesn't work&lt;br&gt;
&amp;gt; %f = W(1) + W(2) * x + W(3) * y + W(4) * x^2; %works&lt;br&gt;
&amp;gt; ezplot(f);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; When I call it with this vector:&lt;br&gt;
&amp;gt; a=[62 -1.8 38 .01 18];&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 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.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Does anyone know why this would be producing an empty plot?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Dave&lt;br&gt;
&lt;br&gt;
Any thoughts?&lt;br&gt;
&lt;br&gt;
Dave</description>
    </item>
    <item>
      <pubDate>Mon, 02 Nov 2009 22:25:58 -0500</pubDate>
      <title>Re: blank ezplot?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264576#691594</link>
      <author>Nasser M. Abbasi</author>
      <description>&lt;br&gt;
&quot;David Doria&quot; &amp;lt;daviddoria@gmail.com&amp;gt; wrote in message &lt;br&gt;
news:hcmq9u$818$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &quot;David Doria&quot; &amp;lt;daviddoria@gmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;lt;hcf35b$5ce$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;&amp;gt; If I have this function:&lt;br&gt;
&amp;gt;&amp;gt; function PlotPolynomialClassifier(W)&lt;br&gt;
&amp;gt;&amp;gt; syms x;&lt;br&gt;
&amp;gt;&amp;gt; syms y;&lt;br&gt;
&amp;gt;&amp;gt; f = W(1) + W(2) * x + W(3) * y + W(4) * x^2 + W(5) * y^2; %doesn't work&lt;br&gt;
&amp;gt;&amp;gt; %f = W(1) + W(2) * x + W(3) * y + W(4) * x^2; %works&lt;br&gt;
&amp;gt;&amp;gt; ezplot(f);&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; When I call it with this vector:&lt;br&gt;
&amp;gt;&amp;gt; a=[62 -1.8 38 .01 18];&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; it produces an empty plot. I used solve(f,y) =  ((648*x)/5 - &lt;br&gt;
&amp;gt;&amp;gt; (18*x^2)/25 - 3020)^(1/2)/36 - 19/1 to see if there are any problems with &lt;br&gt;
&amp;gt;&amp;gt; the function (divide by zero or something like that) but it doesn't look &lt;br&gt;
&amp;gt;&amp;gt; like it.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Does anyone know why this would be producing an empty plot?&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Thanks,&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Dave&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;gt; Any thoughts?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Dave&lt;br&gt;
&lt;br&gt;
Because you are telling matlab to plot the function f(x,y)=0. that what &lt;br&gt;
ezplot does.&lt;br&gt;
&lt;br&gt;
When I solved this function for x and y,  I find that f=0 when&lt;br&gt;
&lt;br&gt;
x=0.5* (180. - 84.852* sqrt(0.4174526 - *y) * sqrt(2.528 + y) )&lt;br&gt;
&lt;br&gt;
And over the default region used which 2pi..2pi, if you evaluate x for &lt;br&gt;
y=-2Pi..2Pi, you'll get complex numbers for all these values with just &lt;br&gt;
constant real part and varying complex part.  ezplot has nothing to show for &lt;br&gt;
this.&lt;br&gt;
&lt;br&gt;
May be what you want is to plot is just f(x,y) for different x,y values. use &lt;br&gt;
ezcontour()&lt;br&gt;
&lt;br&gt;
(i substituted your W values already below into f)&lt;br&gt;
&lt;br&gt;
syms x y&lt;br&gt;
f= 62 - 1.8*x + 38*y + .01*x^2 + 18*y^2;&lt;br&gt;
ezcontour(f)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
--Nasser </description>
    </item>
  </channel>
</rss>

