tim*_*tim 0 matlab vector
嘿那里,有没有办法在matlab中随机"混合"输入向量元素的顺序?说我输入
[1:5]"
我想出去例如:
[3 5 1 2 4]'
谢谢!
Jon*_*nas 5
使用RANDPERM:
shuffledOutput = inputVector(randperm(length(inputVector)));
归档时间:
14 年,8 月 前
查看次数:
821 次
最近记录:
11 年,9 月 前