Easonable software
Easonable
Added: April 22, 2013 | Visits: 228
A = RANDSUBSET(N, K) is equivalent toALLSUBSETS = NCHOOSEK(1:N,K);A = ALLSUBSETS(RANDI(NCHOOSEK(N,K)));% orA = RANDPERM(N);A = SORT(A(1:k));This function can also be used to generate random sampling without replacement by calling RANDPERM on the output.It works advantageously with large N (but...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): RANDSUBSET Download |