Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: min function
Date: Sun, 8 Nov 2009 18:02:21 -0500
Organization: The MathWorks, Inc.
Lines: 30
Message-ID: <hd7ik2$h4l$1@fred.mathworks.com>
References: <5f4e03da-0f98-4ac1-baa1-de5a8b126755@z4g2000prh.googlegroups.com>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1257721282 17557 172.31.44.65 (8 Nov 2009 23:01:22 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 8 Nov 2009 23:01:22 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Xref: news.mathworks.com comp.soft-sys.matlab:583419



"munir" <munirpansare@gmail.com> wrote in message 
news:5f4e03da-0f98-4ac1-baa1-de5a8b126755@z4g2000prh.googlegroups.com...
> dear all,
> i m doing following program but it is not working.
> where kuufinal and muufinal are mass matrix.

*snip*

> following error is coming.
> ??? Undefined function or method 'min' for input arguments of type
> 'sym'.
>
> Error in ==> Untitled17 at 371
> [c,i]=min(H)
>
> plz help to correct.
> thanks and regards.

You cannot use the MIN function on symbolic arrays.  One reason for this: 
what is the minimum value of [sym('x'), sym('y')]?  You will need to convert 
the symbolic expression into a numeric array (using the DOUBLE function) in 
order to use the MIN function.

-- 
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ