Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



Re: Combinations, iterations, indices and file names
Posted:
Sep 19, 2009 11:06 AM


"Paul Skvorc" <pskvorc@biopar.com> wrote in message <h92r4o$3q7$1@fred.mathworks.com>... > "Matt Fig" <spamanon@yahoo.com> wrote in message <h92peb$go2$1@fred.mathworks.com>... > > Why not use a cell array? > > > > help cell > > Why use a cell array?
Smartass answers aside, the issue isn't how to concatenate the 64x128 matrices. That's trivial. The issue is:
The first comparison is between (1:64,1:128) and (1:64,1:128). That's 1 on 2. The second comparison is (1:64,1:128) and (1:64,129:256). The first "cell" doesn't iterate, but the second does, keeping in mind that both are within the arguments of a single function. To add to the problem, the iteration doesn't start at "the beginning" and decrements. In other words, I do not want to match 1 with on or 2 with 2 or 3 with 3 or 4 with for or 5 with 5 or... Therefore at the transition from 1 as the first argument to 2 as the first argument, there is a "twostep". In other words: The last comparison with ones is 1 with 5. The next comparison is neither 2 with 1 (already done) OR 2 with 2. This is the iteration issue. It doesn't touch the naming issues.
Paul



