I have matrix nxn, A=[1 2 3 4;5 6 7 8; 9 10 11 12; 13 14 15 16]; I want to shuffle this matrix, which will give AB=[1 2 5 6; 3 4 7 8; 9 10 13 14; 11 12 15 16]. Any help will be highly appreciated, Rosi.
MATLAB: How to shuffle a matrix
shuffle matrix
Related Question
- 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
- Reshape 3d matrix to obtain a column vector
- How to reshape a 2D to 3D matrix without using loops (reshape) and keeping a particular order of the elements// Wrong arragement of elemts after using “reshape”
- How to measure an angle of peaks in a plot
- Remove all NaN values from an array.
- How to combine two matrices
- Shift rows by different amounts
Best Answer