Robochameleon  v1.0
Functions
paramDeepCopy.m File Reference

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...
 

Detailed Description

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

param.M = 4;
param.modulationFormat = 'QAM';
param.samplesPerSymbol = 16;
param.pulseShape = 'rrc';
param.rollOff = 0.2;
sg_param=paramDeepCopy('SymbolGenerator_v1',param)
ps_param=paramDeepCopy('PulseShaper_v2',param)
Author
Rasmus Jones
Version
1

Definition in file paramDeepCopy.m.

Function Documentation

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

Parameters
moduleNameModule in question
Return values
namesList 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

Parameters
moduleNameModule in question
Return values
namesTree 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()

Parameters
treeTree structure from getInternalUnitsNested()
Return values
propsList 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.

Parameters
className of module/unit, e.g. WavformGenerator_v1
paramStruct of parameters
Return values
param_copiedStruct of copied parameters aligned to given module/unit