MATLAB: Reflexion to a 100 X 100 X 28 cubic matrix

3d matrix reflexion

Hello,
please I'd like to apply a X-Z plane reflexion to a 100 X 100 X 28 cubic matrix (3D) stored in a vector of 280000 cells,
the X-Z plane of reflexion passing through the middle of the matrix at y = 50.
please is there any code ?
Many thanks

Best Answer

M_flipped = flipdim(M,2);