How Can I mix my matrix randomly ?

2 ビュー (過去 30 日間)
omar najjar
omar najjar 2021 年 3 月 5 日
回答済み: KALYAN ACHARJYA 2021 年 3 月 5 日
Bascially I have a matrix of size 100*100 and I want to reorder it randomly , how can I do that ?
Also can I do that by using randi ?
thanks

採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2021 年 3 月 5 日
One way: Here data is 100 by 100 matrix
mat_data=data(:);
result=reshape(mat_data(randperm(100*100)),[100,100]);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by