function NX=rvanlsys(X, cf) % rvanlsys(X, cf) generates a random variable matrix by using F() for the % given cumulative function cf to act on the random variable matrix X. if iscf(cf)==0 error('invalid cumulative function') end s=size(X); NX=zeros(s); for i=1:s(1), NX(i,:)=pval(cf, X(i,:)); end