<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167188</link>
    <title>MATLAB Central Newsreader - Undefined function - min/max</title>
    <description>Feed for thread: Undefined function - min/max</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The 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>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 08 Apr 2008 17:09:02 -0400</pubDate>
      <title>Undefined function - min/max</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167188#425456</link>
      <author>susan</author>
      <description>Hi! I keep getting an error while trying to run code with &lt;br&gt;
this:&lt;br&gt;
&lt;br&gt;
mindata=min(data);&lt;br&gt;
&lt;br&gt;
The error is "Undefined function or variable "min"."&lt;br&gt;
&lt;br&gt;
&amp;nbsp;The same error happens with max. Everything else in the &lt;br&gt;
code works.I can run this from command line though!&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 08 Apr 2008 17:25:05 -0400</pubDate>
      <title>Re: Undefined function - min/max</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167188#425462</link>
      <author>David </author>
      <description>"susan " &amp;lt;suetibu@hotmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;ftg8re$akl$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi! I keep getting an error while trying to run code &lt;br&gt;
with &lt;br&gt;
&amp;gt; this:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; mindata=min(data);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The error is "Undefined function or variable "min"."&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;  The same error happens with max. Everything else in the &lt;br&gt;
&amp;gt; code works.I can run this from command line though!&lt;br&gt;
&lt;br&gt;
how about an example?  sometimes you can find the problem &lt;br&gt;
when trying to cut the code down to the shortest section &lt;br&gt;
that reproduces the problem so you can post it, preferably &lt;br&gt;
no more than a half dozen lines or so.&lt;br&gt;
&lt;br&gt;
maybe put a 'which min' and 'whos min' just before the &lt;br&gt;
error line.  or use the debugger to stop on error and then &lt;br&gt;
do the which and whos command to see what it thinks 'min' &lt;br&gt;
really means at that point.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 08 Apr 2008 17:42:05 -0400</pubDate>
      <title>Re: Undefined function - min/max</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167188#425471</link>
      <author>Bill </author>
      <description>when you were experimenting with code, you created a &lt;br&gt;
variable named "min" and "max".&lt;br&gt;
&lt;br&gt;
Now min and max don't live here anymore.&lt;br&gt;
&lt;br&gt;
Restart Matlab and search your scripts for where you &lt;br&gt;
assigned a value to min and max. Then change their names to &lt;br&gt;
a non protected name.  Even MIN and MAX will work.  &lt;br&gt;
&lt;br&gt;
I have the same problem with 'size' because stuff I analyze &lt;br&gt;
has size as an object description.... !&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 08 Apr 2008 17:55:09 -0400</pubDate>
      <title>Re: Undefined function - min/max</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167188#425473</link>
      <author>us</author>
      <description>"Bill ":&lt;br&gt;
&amp;lt;SNIP wrong track...&lt;br&gt;
&lt;br&gt;
&amp;gt; when you were experimenting with code, you created a &lt;br&gt;
&amp;gt; variable named "min" and "max".&lt;br&gt;
&amp;gt; Now min and max don't live here anymore...&lt;br&gt;
&lt;br&gt;
no, in this case the OP would have received a different &lt;br&gt;
error -or- depending oh the type of &amp;lt;min&amp;gt;/&amp;lt;max&amp;gt;, no error &lt;br&gt;
at all...&lt;br&gt;
&lt;br&gt;
us&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 08 Apr 2008 20:44:08 -0400</pubDate>
      <title>Re: Undefined function - min/max</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167188#425486</link>
      <author>susan</author>
      <description>"us " &amp;lt;us@neurol.unizh.ch&amp;gt; wrote in message &lt;br&gt;
&amp;lt;ftgbht$o9t$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; "Bill ":&lt;br&gt;
&amp;gt; &amp;lt;SNIP wrong track...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; when you were experimenting with code, you created a &lt;br&gt;
&amp;gt; &amp;gt; variable named "min" and "max".&lt;br&gt;
&amp;gt; &amp;gt; Now min and max don't live here anymore...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; no, in this case the OP would have received a different &lt;br&gt;
&amp;gt; error -or- depending oh the type of &amp;lt;min&amp;gt;/&amp;lt;max&amp;gt;, no &lt;br&gt;
error &lt;br&gt;
&amp;gt; at all...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; us&lt;br&gt;
&lt;br&gt;
Hi! Yes I had assigned it earlier!! Thanks everybody.&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 08 Apr 2008 20:48:04 -0400</pubDate>
      <title>Re: Undefined function - min/max</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167188#425487</link>
      <author>susan</author>
      <description>"us " &amp;lt;us@neurol.unizh.ch&amp;gt; wrote in message &lt;br&gt;
&amp;lt;ftgbht$o9t$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; "Bill ":&lt;br&gt;
&amp;gt; &amp;lt;SNIP wrong track...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; when you were experimenting with code, you created a &lt;br&gt;
&amp;gt; &amp;gt; variable named "min" and "max".&lt;br&gt;
&amp;gt; &amp;gt; Now min and max don't live here anymore...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; no, in this case the OP would have received a different &lt;br&gt;
&amp;gt; error -or- depending oh the type of &amp;lt;min&amp;gt;/&amp;lt;max&amp;gt;, no &lt;br&gt;
error &lt;br&gt;
&amp;gt; at all...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; us&lt;br&gt;
&lt;br&gt;
Hi! Yes I had assigned it earlier!! Thanks everybody.&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 08 Apr 2008 20:48:04 -0400</pubDate>
      <title>Re: Undefined function - min/max</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167188#425488</link>
      <author>susan</author>
      <description>"us " &amp;lt;us@neurol.unizh.ch&amp;gt; wrote in message &lt;br&gt;
&amp;lt;ftgbht$o9t$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; "Bill ":&lt;br&gt;
&amp;gt; &amp;lt;SNIP wrong track...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; when you were experimenting with code, you created a &lt;br&gt;
&amp;gt; &amp;gt; variable named "min" and "max".&lt;br&gt;
&amp;gt; &amp;gt; Now min and max don't live here anymore...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; no, in this case the OP would have received a different &lt;br&gt;
&amp;gt; error -or- depending oh the type of &amp;lt;min&amp;gt;/&amp;lt;max&amp;gt;, no &lt;br&gt;
error &lt;br&gt;
&amp;gt; at all...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; us&lt;br&gt;
&lt;br&gt;
Hi! Yes I had assigned it earlier!! Thanks everybody.&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
