Name

COMBIN — Function to generate all possible combinations of elements stored in a list element

Calling Sequence

COMB = COMBIN(XVAL)

Parameters

XVAL

list of P vectors of undefined size (list created with the list function).

COMB

All possible set of vectors of size [Px1] from the values stored in XVAL (matrix [PxN] where N is the number of combination)

Description

  • This function is designed to generate all possible set of parameters vector from given values of each parameters.

Examples

    // Different values of 2 variables
   XVAL=list([200,300,400],[0,1,2]);
   
   // Combinations
   C=COMBIN(XVAL);
  

See Also

list

Authors

Julien Lerat

CEMAGREF Antony, HBAN Unit, julien.lerat@cemagref.fr