>>P = [1,2;3,4;5,6;7,8;9,10]
P =
1 2
3 4
5 6
7 8
9 10
>>iP = randperm(length(P))
iP =
4 2 5 1 3
>>P(iP,:)
ans =
7 8
3 4
9 10
1 2
5 6
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
00