1 function indMat =
combvec(varargin)
8 curVec = varargin{iInp};
15 [nDims,nCombs] = size(indMat);
16 indResMat = zeros(nDims,nCombs*nElems);
18 for iCombToAdd=(0:(nElems-1))*nCombs
19 indResMat(:,indVec+iCombToAdd) = indMat;
23 [nDims,nCombs] = size(indMat);
24 indResMat = zeros(nDims*nElems,nCombs);
26 for iCombToAdd=(0:(nElems-1))*nDims
27 indResMat(ind+iCombToAdd,:) = indMat;
29 indResMat = reshape(indResMat,nDims,nElems*nCombs);
function addInterleavedInd(in indMat, in nElems)
function addBlockedInd(in indMat, in nElems)
function combvec(in varargin)
COMBVEC creates a matrix of combinations with elements from input vectors.