1
1
function sel = URandSel(in,n)
9
% specifies the shape of the output, e.g., if N=[10 10 5], SEL will be
9
psychassert(n<=numel(in),'More return elements requested (n: %d) than number of elements in input (n: %d)',n,numel(in));
24
psychassert(nElem<=numel(in),'More return elements requested (prod(n): %d) than number of elements in input (numel(in): %d)',nElem,numel(in));