Robochameleon  v1.0
Functions
findUnit.m File Reference

Finds a unit within a module. More...

Go to the source code of this file.

Functions

function findUnit (in module, in label)
 Finds a unit within a module. More...
 

Detailed Description

Finds a unit within a module.

Example: Set up a simulation for 16 QAM over a linear channel, find the BERT within the setup, and read the BER:

%MAIN CONTROLS
M = 16; %modulation order
Rs = 28e9; %symbol rate
L = 2^16; %sequence length
% PULSE PATTERN GENERATOR
param.ppg = struct('order', 15, 'total_length', L, 'Rs', Rs, 'nOutputs', log2(M)/2, 'negatedChannels', 2, 'levels', [-1 1]);
...
coherentLink = setup_16QAMLinChannel(param);
BERT = findUnit(coherentLink,'BERT_v1');
traverse(coherentLink)
BER = BERT.results.ber;

Definition in file findUnit.m.

Function Documentation

function findUnit ( in  module,
in  label 
)

Finds a unit within a module.

Recursively searches and returns the first found unit or module with a given label

Parameters
modulemodule inside of which to look
labellabel name (the same as class name, if not changed)
Return values
objfound module
Author
Robert Borkowski
Date
2015