Robochameleon
v1.0
|
Combines several signals into one with several colums. More...
Inherits unit.
Public Member Functions | |
function | Combiner_v1 (in varargin) |
Class constructor. More... | |
function | traverse (in obj, in varargin) |
Traverse function. More... | |
![]() | |
function | traverseNode (in obj) |
Set unique ID when creating a unit. More... | |
function | connectOutput (in obj, in uobj, in unitOutput, in nextUnitInput) |
Specify where signal should go next. More... | |
function | connectOutputs (in obj, in units, in destInputs) |
Specify where signal should go next. More... | |
function | writeInputBuffer (in obj, in sig, in inputId) |
write input buffer | |
function | horzcat (in varargin) |
horizontal concatenation | |
function | vertcat (in varargin) |
vertical concatenation | |
function | setparams (in obj, in params, in REQUIRED_PARAMS, in QUIET_PARAMS) |
set parameters More... | |
function | view (in obj) |
Show interactive GUI through unit_view-class. | |
Static Public Member Functions | |
static function | combine (in in) |
Concatenates signals. More... | |
static function | combineComplex (in sig) |
Makes signals complex and concancatenates them. More... | |
static function | CheckInputs (in in) |
Checks inputs. More... | |
Public Attributes | |
Property | nInputs |
Number of input signals. | |
Property | nOutputs |
Number of output signals. | |
Property | type |
Combiner type {'simple' | 'complex' | 'add' | 'complexInterleave'}. | |
![]() | |
Property | inputBuffer |
Buffer for storing inputs as we traverse the graph. | |
Property | nextNodes |
Children nodes. | |
Property | destInputs |
Destination inputs in children. | |
Property | results |
For storing results. | |
Property | label |
Property | draw |
enable/disable plotting | |
Property | nInputs |
Number of signals traverse expects. | |
Property | nOutputs |
Number of outputs traverse expects. | |
Combines several signals into one with several colums.
Set type to 'simple' to combine N signals to N columns, or 'complex' to combine N signals to N/2 complex colums
Example
Definition at line 23 of file Combiner_v1.m.
function Combiner_v1::Combiner_v1 | ( | in | varargin | ) |
Class constructor.
param.type | Combiner type {'simple' | 'complex'} |
param.nInputs | Number of inputs |
|
static |
Checks inputs.
Takes a cell array of signal_interface and makes sure relevant parameters match
|
static |
Concatenates signals.
Takes a cell array of signal_interfaces and combines them into one with N colums
|
static |
Makes signals complex and concancatenates them.
Takes one signal_interface with 4 columns and combines them into one signal_interface with 2 complex colums
|
virtual |