"Jerry " <
jerry...@gmail.com> wrote in message <k83jm3$4o1$
1...@newscl01ah.mathworks.com>...
- - - - - - - - -
To get the kind of rearrangement you have in mind takes more than a simple 'reshape'. One has to do a little permuting first. Do this:
r = 298; % The number of your blocks
[p,t] = size(A); % p = 201, t = 7152
q = t/r; % t must be divisible by r, q = 24
s = 0:p*q*r-1;
B = reshape(A(1+s+p*((q-1)*floor(s/p)-(q*r-1)*floor(s/(p*r)))),p*r,q);
Roger Stafford