I ask randsample to return a random samples from a 1 x 78000 vector with second argument being 50
It throws an error message reading:
Error using randi
Too many input arguments.
Error in randsample line 153
x(randi(n,1,k-sumx)) = 1; sample w/replacement
I've tried the matlab example too, and it returns the same error message.