<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265286</link>
    <title>MATLAB Central Newsreader - min function</title>
    <description>Feed for thread: min function</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>Sun, 08 Nov 2009 11:34:17 -0500</pubDate>
      <title>min function</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265286#692993</link>
      <author>munir</author>
      <description>dear all,&lt;br&gt;
i m doing following program but it is not working.&lt;br&gt;
where kuufinal and muufinal are mass matrix.&lt;br&gt;
h=[zeros(1,g)]&lt;br&gt;
for i=1:1:g&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x=kuufinal(i,i)/muufinal(i,i)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x=[zeros(1,(i-1)),x,zeros(1,(g-i))]&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;h=h+x&lt;br&gt;
end&lt;br&gt;
H=h&lt;br&gt;
x1=[ones(g,1),zeros(g,(q-1))];&lt;br&gt;
for j=1:1:(q-1)&lt;br&gt;
[c,i]=min(H)&lt;br&gt;
H(i)=inf;&lt;br&gt;
v=[zeros((i-1),1);1;zeros((g-i),1)];&lt;br&gt;
x=[zeros(g,1),zeros(g,(j-1)),v,zeros(g,(g-j))];&lt;br&gt;
x1=x1+x;&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
following error is coming.&lt;br&gt;
??? Undefined function or method 'min' for input arguments of type&lt;br&gt;
'sym'.&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; Untitled17 at 371&lt;br&gt;
[c,i]=min(H)&lt;br&gt;
&lt;br&gt;
plz help to correct.&lt;br&gt;
thanks and regards.</description>
    </item>
    <item>
      <pubDate>Sun, 08 Nov 2009 23:02:21 -0500</pubDate>
      <title>Re: min function</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265286#693085</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;munir&quot; &amp;lt;munirpansare@gmail.com&amp;gt; wrote in message &lt;br&gt;
news:5f4e03da-0f98-4ac1-baa1-de5a8b126755@z4g2000prh.googlegroups.com...&lt;br&gt;
&amp;gt; dear all,&lt;br&gt;
&amp;gt; i m doing following program but it is not working.&lt;br&gt;
&amp;gt; where kuufinal and muufinal are mass matrix.&lt;br&gt;
&lt;br&gt;
*snip*&lt;br&gt;
&lt;br&gt;
&amp;gt; following error is coming.&lt;br&gt;
&amp;gt; ??? Undefined function or method 'min' for input arguments of type&lt;br&gt;
&amp;gt; 'sym'.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Error in ==&amp;gt; Untitled17 at 371&lt;br&gt;
&amp;gt; [c,i]=min(H)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; plz help to correct.&lt;br&gt;
&amp;gt; thanks and regards.&lt;br&gt;
&lt;br&gt;
You cannot use the MIN function on symbolic arrays.  One reason for this: &lt;br&gt;
what is the minimum value of [sym('x'), sym('y')]?  You will need to convert &lt;br&gt;
the symbolic expression into a numeric array (using the DOUBLE function) in &lt;br&gt;
order to use the MIN function.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com&lt;br&gt;
comp.soft-sys.matlab (CSSM) FAQ: &lt;a href=&quot;http://matlabwiki.mathworks.com/MATLAB_FAQ&quot;&gt;http://matlabwiki.mathworks.com/MATLAB_FAQ&lt;/a&gt; </description>
    </item>
  </channel>
</rss>

