How can I use randperm for a nx2 matrix?
John Williams answered .
2025-11-20
"randperm" only takes 1 scalar input argument. Can you give a sample of an input nx2 matrix AND what you would expect the output to be?
If you want to randomly permute the rows, do something like the following.