Robochameleon
v1.0
|
Pulse shaper. More...
Inherits unit.
Public Member Functions | |
function | PulseShaper_v1 (in param) |
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. | |
Static Public Member Functions | |
static function | ps (in in, in samplesPerSymbol, in filterCoeffs) |
Class traverse function. | |
Public Attributes | |
Property | nOutputs |
Number of outputs. | |
Property | nInputs |
Number of inputs. | |
Property | samplesPerSymbol |
Output samples per symbol. | |
Property | symbolRate |
Output sample rate (Does not need to be defined) [Default 1]. | |
Property | pulseShape |
Pulse shaping. | |
Property | filterSymbolLength |
Symbol length of Raised Cosine or Root Raised Cosine filters. | |
Property | rollOff |
Rolloff for Raised Cosine or Root Raised Cosine filters. | |
![]() | |
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. | |
Private Attributes | |
Property | filterCoeffs |
Filter Coefficients. | |
Pulse shaper.
This function converts the input signal in an upsampled pulse shaped signal.
Observations
The input signal shall be an 1 sample per symbol complex signal_interface signal.
'rc' - Raised Cosine, a.k.a. Nyquist Shaping (when using rollOff = 0). 'rrc' - Root Raised Cosine. 'nrz' - Non Return to Zero. 'rz33' - Return to Zero with 1/3 duty cycle. 'rz50' - Return to Zero with 1/2 duty cycle. 'rz66' - Return to Zero with 2/3 duty cycle.
Example
Advanced Example
Definition at line 56 of file PulseShaper_v1.m.
function PulseShaper_v1::PulseShaper_v1 | ( | in | param | ) |
Class constructor.
param.samplesPerSymbol | SamplesPerSymbol - It is the desired output number of samples per symbol. |
param.pulseShape | PulseShape - Choose among 'rc', 'rrc', 'rz33', 'rz50', 'rz67', 'nrz' or 'custom'; |
param.filterCoeffs | FilterCoeffs - You should define this as a vector if you chose 'custom' 'pulseShape'. |
param.filterSymbolLength | FilterSymbolLength - You should define a symbol length for 'rc' or 'rrc' filters. The default value is 202. |
param.rollOff | RollOff - The Roll-Off factor. You should define this value if you are using 'rc' or 'rrc' shapings. Usually, this number varies from 0 to 1. |
param.symbolRate | SymbolRate - You are able to define a symbol rate for your signal here. The output sample frequency will be define as symbolRate*samplesPerSymbol. |
obj | An instance of the class PulseShaper_v1. |