Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!rk3g2000pbb.googlegroups.com!not-for-mail
From: rahill <raheleh.baharloo@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Matrix indices
Date: Sun, 29 Jan 2012 02:23:52 -0800 (PST)
Organization: http://groups.google.com
Lines: 19
Message-ID: <7935790b-4cbe-4387-b8c7-7f6266349bc3@rk3g2000pbb.googlegroups.com>
NNTP-Posting-Host: 65.49.14.60
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1327832632 22339 127.0.0.1 (29 Jan 2012 10:23:52 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 29 Jan 2012 10:23:52 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: rk3g2000pbb.googlegroups.com; posting-host=65.49.14.60; 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: news.mathworks.com 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.
OneColumnIndex=bsxfun(@plus,(1:ll).',11250.*(0:n_cut-1));
ColumnsIncrements=reshape ((0:RChunk-1).*180000,1,1,[]);
AllColumns=bsxfun(@plus,oneColumnIndex,ColumnIncrements);
AllColumns=round(AllColumns);
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.