getcombs

PURPOSE ^

GETCOMBS is an auxiliary function used for obtaining combinations.

SYNOPSIS ^

function combvec=getcombs(ind1,ind2,maincombvec)

DESCRIPTION ^

 GETCOMBS is an auxiliary function used for obtaining combinations.

 GETCOMBS extracts a subset combination from a larger combination array.
 
 INPUTS:
     ind1: first limit of subset combination.
 
     ind2: second limit of subset combination.
 
     maincombvec: main combination array.
 
 OUTPUTS:
     combvec: subset combination array.
 
 Abdallah Kassir 1/3/2010

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function combvec=getcombs(ind1,ind2,maincombvec)
0002 % GETCOMBS is an auxiliary function used for obtaining combinations.
0003 %
0004 % GETCOMBS extracts a subset combination from a larger combination array.
0005 %
0006 % INPUTS:
0007 %     ind1: first limit of subset combination.
0008 %
0009 %     ind2: second limit of subset combination.
0010 %
0011 %     maincombvec: main combination array.
0012 %
0013 % OUTPUTS:
0014 %     combvec: subset combination array.
0015 %
0016 % Abdallah Kassir 1/3/2010
0017 combind=maincombvec>=ind1 & maincombvec<=ind2;
0018 combvec=maincombvec(combind(:,1)&combind(:,2),:);

Generated on Thu 08-Apr-2010 14:35:09 by m2html © 2005