MATLAB: How select random n element af array without replacement

image processingMATLABmatrix array

I have array with m members. how I can select 10 member of it randomly and without replacement?

Best Answer

Let a be your array..to select 10 memebers randomly out of a use
iwant = randsample(a,10)