From: rahill <>
Newsgroups: comp.soft-sys.matlab
Subject: Matrix indices
Date: Sun, 29 Jan 2012 02:23:52 -0800 (PST)
Lines: 19
Message-ID: <>
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
X-Trace: 1327832632 22339 (29 Jan 2012 10:23:52 GMT)
NNTP-Posting-Date: Sun, 29 Jan 2012 10:23:52 +0000 (UTC)
Injection-Info:; posting-host=; posting-account=wVXRwgoAAACCNGMHsjU_zHmLlIFdnPj8
User-Agent: G2/1.0
X-Google-Web-Client: true
X-Google-Header-Order: HUARELSCNK
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.7 (KHTML, like
 Gecko) Chrome/16.0.912.77 Safari/535.7,gzip(gfe)
Xref: comp.soft-sys.matlab:756071

Hi every body
I have one section in my function that produces matrix indices and
then I reshape my matrix according to those Indices.
ColumnsIncrements=reshape ((0:RChunk-1).*180000,1,1,[]);
sig = sig(AllColumns);

 My function can work correctly many times (for example 1000 times)
but suddenly it makes this error “Subscript Indices Must Be Real
Positive Integers or Logicals”
And running stops. I don’t know what happens, I have rounded my
indices, but I have this error yet.
I produce my indices in this way, but I don’t know why MATLAB
sometimes has this error, maybe it is for MATLAB arithmetic.
Help me please
I need to run my function many times.
Thanks for your attention.