Hello!
I have an array (3 by X by Y) that is like this that I would like to collapse:
6 2 16 2 16 2 1(let's say 32 times more)...7 9 87 9 87 9 8(again 32 times more)2 1 22 1 22 1 2(and again, and more times)...
I would like to collapse it to
6 2 17 9 82 1 2...
Any suggestions? I figure there is an easy way to do that (perhaps with reshape()?) but haven't figured it out.
Thanks.
Doug
Best Answer