Hi I have an three dimensional octave array A of size [x y z]

Now I have another array B of dimensions n \* 3

say B(0) gives [3 3 1]

I need to access that location in A ie A(3, 3, 1) = say 15
something like A(B(0))

How do I go about it?