Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!z4g2000prh.googlegroups.com!not-for-mail
From: munir <munirpansare@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: min function
Date: Sun, 8 Nov 2009 03:34:17 -0800 (PST)
Organization: http://groups.google.com
Lines: 28
Message-ID: <5f4e03da-0f98-4ac1-baa1-de5a8b126755@z4g2000prh.googlegroups.com>
NNTP-Posting-Host: 124.124.247.138
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: posting.google.com 1257680057 27917 127.0.0.1 (8 Nov 2009 11:34:17 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 8 Nov 2009 11:34:17 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: z4g2000prh.googlegroups.com; posting-host=124.124.247.138; 
	posting-account=vtztFQoAAAB2c4AburSjnbIDN00Cftc9
User-Agent: G2/1.0
X-HTTP-Via: 1.1 cs08.cc.iitd.ac.in:3128 (squid/2.6.STABLE13)
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) 
	AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.27 Safari/532.0,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:583326


dear all,
i m doing following program but it is not working.
where kuufinal and muufinal are mass matrix.
h=[zeros(1,g)]
for i=1:1:g
    x=kuufinal(i,i)/muufinal(i,i)
    x=[zeros(1,(i-1)),x,zeros(1,(g-i))]
    h=h+x
end
H=h
x1=[ones(g,1),zeros(g,(q-1))];
for j=1:1:(q-1)
[c,i]=min(H)
H(i)=inf;
v=[zeros((i-1),1);1;zeros((g-i),1)];
x=[zeros(g,1),zeros(g,(j-1)),v,zeros(g,(g-j))];
x1=x1+x;
end

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.