Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon02.news.prodigy.net!prodigy.net!news.glorb.com!news.aset.psu.edu!news.cse.psu.edu!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: Strange errors
Date: Fri, 26 Oct 2007 17:05:01 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 15
Message-ID: <fft6nt$i6i$1@canopus.cc.umanitoba.ca>
References: <ffsuk8$331$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1193418301 18642 192.70.172.160 (26 Oct 2007 17:05:01 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Fri, 26 Oct 2007 17:05:01 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:434801



In article <ffsuk8$331$1@fred.mathworks.com>,
Matthew Sullivan <nospam@nospam.no> wrote:
>I've been running in to a strange MATLAB script problem that
>I don't quite understand.  The specific error I get is
>"Subscript indices must either be real positive integers or
>logicals."

You can encounter that problem if you think you are calling
a function, but you have accidently introduced a variable with
the same name as the function so that it is trying to index
the variable with function arguments.
-- 
   So you found your solution
   What will be your last contribution?
   -- Supertramp (Fool's Overture)