Robochameleon
v1.0
|
Splits a signal with several columns into several signals. More...
Inherits unit.
Public Member Functions | |
function | Splitter_v1 (in nOutputs) |
Class constructor. More... | |
function | traverse (in obj, in in) |
Main function call. | |
![]() | |
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. | |
Public Attributes | |
Property | nInputs |
Property | nOutputs |
![]() | |
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. | |
Splits a signal with several columns into several signals.
The type of splitter is decided automatically. If the number of output signals is equal to the number of components of the input signal then splits each column into one signal. If the number of output signals is double the number of components of the input signal then i-th component is split into real part to output i and imaginary part to output i+N, where N is the number of input signal components.
Example:
Definition at line 1 of file Splitter_v1.m.
function Splitter_v1::Splitter_v1 | ( | in | nOutputs | ) |
Class constructor.