Apply phase and frequency offsets to input signal
The PhaseFrequencyOffset
object applies phase
and frequency offsets to an incoming signal.
To apply phase and frequency offsets to the input signal:
Define and set up your phase frequency offset object. See Construction.
Call step
to apply phase and frequency
offsets to the input signal according to the properties of comm.PhaseFrequencyOffset
.
The behavior of step
is specific to each object in
the toolbox.
Starting in R2016b, instead of using the step
method
to perform the operation defined by the System
object™, you can
call the object with arguments, as if it were a function. For example, y
= step(obj,x)
and y = obj(x)
perform
equivalent operations.
H = comm.PhaseFrequencyOffset
creates a
phase and frequency offset System
object, H
.
This object applies phase and frequency offsets to an input signal.
H = comm.PhaseFrequencyOffset(
creates
a phase and frequency offset object, Name
,Value
)H
, with each
specified property set to the specified value. You can specify additional
name-value pair arguments in any order as (Name1
,Value1
,...,NameN
,ValueN
).
|
Phase offset Specify the phase offset in degrees. The default is When you set the When you set this property to an M-by-1 vector,
the object applies time varying phase offsets, specified in the vector
of this property, to each column of the input to the When you set this property to a 1-by-N vector,
the object applies the i-th constant phase offset
of this property to the i-th column of the input
to the When you set this property to an M-by-N matrix,
the object applies the i-th time varying phase
offsets, specified in the i-th column of this property,
to the i-th column of the input to the |
|
Source of frequency offset Specify the source of the frequency offset as one of |
|
Frequency offset Specify the frequency offset in Hertz. The default is This property applies when you set the When you set this property to a scalar value, the object applies
the constant specified frequency offset to each column of the input
to the When you set this property to an M-by-1 vector,
the object applies time-varying frequency offsets. These offsets are
specified in the property, to each column of the input to the When you set this property to a 1-by-N vector,
the object applies the i-th constant frequency
offset in this property to the i-th column of the
input to the When you set this property to an M-by-N matrix,
the object applies the i-th time varying frequency
offset. This offset is specified in the i-th column
of this property and to the i-th column of input
to the |
|
Sample rate Specify the sample rate of the input samples in seconds as a
double-precision, real, positive scalar value. The default is
|
step | Apply phase and frequency offsets to input signal |
Common to All System Objects | |
---|---|
release | Allow System object property value changes |
This object implements the algorithm, inputs, and outputs described on the Phase/Frequency Offset block reference page. The object properties correspond to the block parameters, except:
The object provides a SampleRate property, which you must specify. The block
senses the sample time of the signal and therefore does not have a corresponding
parameter. |