Matlab怎樣從數(shù)組矩陣中隨機取數(shù)?
try function 'randperm', for example:a=[1 2 3 4 5 6 7 8 9 10];b=a(randperm(length(a)));x=b(1:5);
Matlab怎樣從數(shù)組矩陣中隨機取數(shù)?
try function 'randperm', for example:a=[1 2 3 4 5 6 7 8 9 10];b=a(randperm(length(a)));x=b(1:5);