Hello, I have a upto 10 arrays of data that I "stack" using the 3rd index i.e. if my arrays are A, B, C….J etc
CombinedArray(:,:,1)=ACombinedArray(:,:,2)=BCombinedArray(:,:,3)=C....CombinedArray(:,:,3)=J
I then want to find the max and min element wise on this multideimensional array, the problem is I dont have a fixed number for the 3rd dimension, it will always change. Is there a way to do this without using loops?
I thought the following would work but it doesn't
out1=max(CombinedArray,3)out2=min(CombinedArray,3)out3=mean(CombinedArray,3)
Thanks
Jason
Best Answer