You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
PERMM Permutates a matrix A by given indexes by computing B = P'*A*P
B = permm(A,indx)
[B,P] = permm(A,indx)
The function applies simultaneous column and row permutation, that is by
given indexes indx = [k j m ...] the function rearranges the elements of A
so that B11=Akk, B12=Akj, ... B21 = Ajk, B22=Ajj, ...
Example
A = [11 12 13 % initial matrix
21 22 23
31 32 33]
idp = [2 3 1] % order of rearrangement
B = permm(A, idp); % rearranged matrix
% B = [22 23 21
% 32 33 31
% 12 13 11]
Cite As
Andrey Popov (2026). Permute a Matrix (https://uk.mathworks.com/matlabcentral/fileexchange/25148-permute-a-matrix), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: IMPLEMENTATION OF FIXED POINT THEORY ON IMAGE INTEGRITY AUTHENTICATION
General Information
- Version 1.1.0.0 (1.55 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
