随机函数将一列序号随机打乱,序号必须是整数。 语法描述: p=randperm(n) 即产生1~n的随机序列>> randperm(5) ans = 5 3 4 1 2 p = randperm(n,k) ...
確定! 回上一頁