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 17:56:23 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 27
Message-ID: <htrkg7$rn6$1@fred.mathworks.com>
References: <htrjji$34i$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1275155783 28390 172.30.248.37 (29 May 2010 17:56:23 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 29 May 2010 17:56:23 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:640505

"roya olyazadeh" <roya2543@gmail.com> wrote in message <htrjji$34i$1@fred.mathworks.com>...
> This is my matrix : 
> 
> X00 =
> 
>   Columns 1 through 3 
> 
>                       1000          939.073645098372          814.549313652745
> 
>   Columns 4 through 6 
> 
>                    878.926          912.009169278451          893.126889224274
> 
> 
> ??? 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. 

  I would guess that somewhere you have an array named 'min' and matlab is objecting to the fact that the elements of X00, used as indices into 'min', are not positive integers, which in fact they are *not*.

  You should never give your variables the names of matlab functions, for precisely this reason.

Roger Stafford