Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: dynamically creating for loops
Date: Wed, 9 Sep 2009 09:37:03 +0000 (UTC)
Organization: Indian Institute of Technology
Lines: 22
Message-ID: <h87svu$o52$1@fred.mathworks.com>
References: <h87hf1$q8e$1@fred.mathworks.com> <h87qms$a3o$1@fred.mathworks.com> <h87r7o$jub$1@fred.mathworks.com> <h87rsc$8kq$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1252489023 24738 172.30.248.35 (9 Sep 2009 09:37:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 9 Sep 2009 09:37:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 223861
Xref: news.mathworks.com comp.soft-sys.matlab:569194


Hi
Thank you for your directions. 
to be more detail, I 'm having the following code

alpha =5;
M = 10
cnt = 1;
for j1 = 1 + alpha : M - alpha
    for j2 = max(alpha,j1-1) : min(j1+1,M - alpha)
        for j3 = max(alpha,j2-1) : min(j2+1,M - alpha)
            ......for j'N' = 
            data(cnt,:) = [j1 j2 j3 .....];
            cnt = cnt+1;
            ....
        end
    end
end

Can someone help me with code. 

with regards,
ramana