Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Error in MIN and MAX
Date: Sat, 29 May 2010 18:10:21 +0000 (UTC)
Organization: Xoran Technologies
Lines: 18
Message-ID: <htrlad$im4$1@fred.mathworks.com>
References: <htrjji$34i$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1275156621 19140 172.30.248.38 (29 May 2010 18:10:21 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 29 May 2010 18:10:21 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1440443
Xref: news.mathworks.com comp.soft-sys.matlab:640509

"roya olyazadeh" <roya2543@gmail.com> wrote in message <htrjji$34i$1@fred.mathworks.com>...
 
> ??? Subscript indices must either be real positive integers or logicals.
> 
> Error in ==> networkadjustment at 480
> min(X00)
> 
> 
> What is the problem ? each element seems to be real positive integers. 
==============

Another fix, if you really want a variable named 'min'. Change line 480 of networkadjustment.m to,

myMin(X00)

Then, as the first line of code in the file, add

myMin=@min;