Robochameleon
v1.0
|
Copy parameters aligned to the properties of a module/unit. More...
Go to the source code of this file.
Functions | |
function | paramDeepCopy (in class, in param) |
Copy parameters aligned to the properties of a module/unit. More... | |
function | myRegex (in prop, in name) |
function | getInternalUnitsNested (in moduleName) |
Gather all units within a module as tree structure of cell arrays. More... | |
function | getInternalUnits (in moduleName) |
Gather all units/modules within a modules constructor. More... | |
function | getUnitsTreeProperties (in tree) |
Gather all properties from a tree structure of units. More... | |
Copy parameters aligned to the properties of a module/unit.
{}
Copy all parameters of a parameters struct, which have the same names as the module properties and all its unit properties.
Example
Definition in file paramDeepCopy.m.
function getInternalUnits | ( | in | moduleName | ) |
Gather all units/modules within a modules constructor.
Helper function that extracts the unit/module names from the constructor of a module
moduleName | Module in question |
names | List of units/modules extracted from module in questions |
function getInternalUnitsNested | ( | in | moduleName | ) |
Gather all units within a module as tree structure of cell arrays.
Creates a tree structure of cell arrays where the leafs hold all unit names of the module in question
moduleName | Module in question |
names | Tree structure of cell arrays with unit names as leafs |
function getUnitsTreeProperties | ( | in | tree | ) |
Gather all properties from a tree structure of units.
Helper function that extracts all the properties of a tree structure created by getInternalUnitsNested()
tree | Tree structure from getInternalUnitsNested() |
props | List of properties from all units within the tree structure |
function paramDeepCopy | ( | in | class, |
in | param | ||
) |
Copy parameters aligned to the properties of a module/unit.
Copy all parameters of a parameters struct, which have the same names as the module properties and all its unit properties.
class | Name of module/unit, e.g. WavformGenerator_v1 |
param | Struct of parameters |
param_copied | Struct of copied parameters aligned to given module/unit |