Displaying 1 result from an estimated 1 matches for "array4d".
Did you mean:
array4
2009 Jun 12
2
Slicing an array
Hi all,
I've been trying to work out how to slice an array of arbitrary
dimension. I found a message showing how to stick two arrays together,
but so far have been unable to transform that into what I need. Assume
that I have a four dimensional array for example:
array4d
, , 1, 1
[,1] [,2]
[1,] 3 6
[2,] 1 1
, , 2, 1
[,1] [,2]
[1,] 4 7
[2,] 8 7
, , 1, 2
[,1] [,2]
[1,] 7 8
[2,] 8 7
, , 2, 2
[,1] [,2]
[1,] 7 5
[2,] 9 9
I want to slice the array from the rightmost dimension, getting in sequence...