フィルターのクリア

How can I permute the matrix block?

3 ビュー (過去 30 日間)
Yuxing Zhang
Yuxing Zhang 2018 年 11 月 5 日
コメント済み: Yuxing Zhang 2018 年 11 月 5 日
Says I now have a 400x400 matrix A, and want to permute the middle 80x80 part, which I need to divide into 16 blocks of each size 20x20 like figure below and re-arrange the order of the blocks like the vector V=[7;11;3;14.....]. Means I need to replace block 1 by block 7, replace block 2 by block 11, replace block 3 by block 3 like the order in vector V. Can any one tell me how can I achieve this? As I don't know how to make the blocks and change order, thank you.

採用された回答

Image Analyst
Image Analyst 2018 年 11 月 5 日
Try using blockproc() and randperm(). I've attached demos to help you.
  1 件のコメント
Yuxing Zhang
Yuxing Zhang 2018 年 11 月 5 日
thank you

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by