Shuffle the rows and columns
古いコメントを表示
I have an array M
M = [1 2 3 4 ; -1 -2 -3 -4 ; 1 2 3 4 ; -1 -2 -3 -4]
I want to shuffle the rows of (M) from [1 2 3 4] to [1 3 4 2] and shuffle the columns of (M) from [1 2 3 4] to [3 2 4 1].
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Mathematics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!