How can I move all the elements of a particular column circulary upwards or circularly downwards by some shift s. I have a matrix A = [ 1 2 3 4; 5 6 7 8; 9 10 11 12; 13 14 15 16] and shift columns 1, 2, 3 and 4 by shifts 2, 1 , 3 and 2 respectively then I get the matrix A as A = [9 6 15 12; 13 10 3 16; 1 14 7 4; 5 2 11 8].
MATLAB: Column circular permutaion on a matrix
column circular permutationMATLAB
Related Question
- Shift rows by different amounts
- I have a matrix of 5 rows and 3 columns and i want to select only 1st 3rd and 4th row with all column using an array how to do it?whats the script
- How to circular shift a matrix for every 1 to 6 elements until its end
- Remove all NaN values from an array.
- Convert a 1*16 matrix to a 2*8 matrix
- Reshape 3d matrix to obtain a column vector
- How can i change position in the matrix
Best Answer