I'm trying to sum every 2 pages at a time in 3D data.
for example, suppose I have 3x2x5 double data like this:
data = ones(3,2,5);
after I sum every 2 pages then I can get 3x2x3 double data like this:
data(:,:,1) = 2 2 2 2 2 2
data(:,:,2) =
2 2 2 2 2 2
data(:,:,3) =
1 1 1 1 1 1
I'm not sure you can understand what I'm saying..please leave comment if you need more explanation.
The JPG file I attached(pic.jpg) might help you understand.
Many thanks to all
Best Answer