Re-generate random matrix

1 次查看(过去 30 天)
Hi
I have a matrix A (9X9) and I want to generate a new matrix B using the same matrix of A and should be distributed randomly and each number should be used once to generate matrix B.

采纳的回答

David Fletcher
David Fletcher 2018-4-12
编辑:David Fletcher 2018-4-12
ind=randperm(81)
B=reshape(A(ind),9,9)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Random Number Generation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by