p = randperm(n) returns a random permutation of the integers 1:n . Remarks. The randperm function calls rand and therefore changes rand 's state. Examples.
確定! 回上一頁