Code covered by the BSD License  

Highlights from
Discriminant Analysis Programme

image thumbnail
from Discriminant Analysis Programme by Bartolomeu Rabacal
Discrimination and Classification of data to and from groups with classical/robust estimation

randomset1(tot,nel)
function ranset = randomset1(tot,nel)

% This function is called if not all (p+1)-subsets out of n will be 
% considered. It randomly draws a subsample of nel cases out of tot.      

ranper=randperm(tot);
ranset=ranper(1:nel);

%-----------------------------------------------------------------------

Contact us at files@mathworks.com