splitdata

make n - partitions of a list, returns its indices

Syntax

ind = splitdata(x,n,'param1',val1,'param2',val2)