Info

此问题已关闭。 请重新打开它进行编辑或回答。

the scheduling problem must vary the elements row wise based on random numbers generated

1 次查看(过去 30 天)
p=[5 4 3;3 2 1;6 5 3;4 3 2]
q=rand(4,3);
based on the rank of random numbers generated in q the values in p matrix must be interchanged row-wise. please help

回答(1 个)

Walter Roberson
Walter Roberson 2015-6-5
See randperm()

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by