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.
Note
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 Tunable: Yes |
|
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 Tunable: Yes |
|
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 |
If the input signal is u(t), then the output signal is
where f(t) is the frequency offset, and φ(t) is the phase offset.
The discrete-time output is given by
where i > 0, and Δt is the sample time.