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