I have a matrix 12528×246, I would like to the circular shift of the 2nd dimension(246). The shift should be done for every consecutive 6 elements from 1 position till the end of the matrix starting from 1 to 246. For e.g, 1:6(perform circular shift for 1 position) then repeat the steps for 7:12,……up to 241:246. Is it possible to do such an operation using circular shift? I tried my best but couldn't find the correct logic.
MATLAB: How to circular shift a matrix for every 1 to 6 elements until its end
matrixmatrix arraymatrix manipulation
Best Answer