1 %call generateIO with default parameters (random means, covariances = identity, equirepartition)
2 function[X,Y,Z] = generateIOdefault(n, p, m, k)
5 meanX = rangeX * (1 - 2*rand(k, p));
12 pi = (1/k) * ones(1,k);
14 %initialize beta to a random number of non-zero random value
17 nonZeroCount = ceil(m*rand(1));
18 beta(j,1:nonZeroCount,:) = rand(nonZeroCount, k);
21 [X,Y,Z] = generateIO(meanX, covX, covY, pi, beta, n);