dCE = cordexch(nfactors, nruns)
[dCE, X] = cordexch(nfactors, nruns, modelspec)
cordexch provides a coordinate-exchange compatible interface backed by the row-exchange implementation.
rng(7);
[dCE, X] = cordexch(2, 3, 'linear', 'Display', 'off', 'AvoidDuplicates', true);
dCE
X