rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
Functions
createCombinations.m File Reference

Creates the cartesian product of the vectors passed as a matrix containing elements of each vector per row. More...

Go to the source code of this file.

Functions

function comb = createCombinations (ranges, varargin)
 Creates the cartesian product of the vectors passed as a matrix containing elements of each vector per row. More...
 

Detailed Description

Creates the cartesian product of the vectors passed as a matrix containing elements of each vector per row.

Definition in file createCombinations.m.

Function Documentation

function comb = createCombinations (   ranges,
  varargin 
)

Creates the cartesian product of the vectors passed as a matrix containing elements of each vector per row.

Inputs
ranges: Can either be a cell array of vectors or a vector. varargin: If the first argument is a vector, an arbitrary number of additional vectors can be passed to build the cartesian product from.

this file was taken from KerMor

Author
Daniel Wirtz
Date
11.10.2010
Parameters
rangesranges
vararginvarargin
Return values
combA matrix containing the combinations, each row corresponds to an input vector's range.

Definition at line 17 of file createCombinations.m.