function NX=rvsynth(X, cf) % rvsynth(X, cf) Synthesizes a random variable matrix by using F() inverse % for the given cumulative function to act on a the random variable % matrix X. X should only have valid probability values (>=0, <=1). if iscf(cf)==0 error('invalid cumulative function') end NX=zeros(size(X)); s=size(X); for i=1:s(1), NX(i,:)=xval(cf, X(i,:)); end