So I've made a 3 dimentional array
and I'm trying to find the position of the random 1that I have slapped in there. In this instance, the 1 is here, on the 3rd 'page':
0 1 0
0 0 0
0 0 0
I now want to find the coordinates of the 1, to do this I use:
[x,y,z] = find(yy(1:3,1:3,1:3));
C = [x,y,z];
And now this will return:
It doesn't make sense to me how the position is numbered, surely the position should be (2,3,3)?
If anyone can shead some light on how this coordinated numbering system works in 3D arrays I'll be forever greatful!