Apply window to input signal
The Window
object applies a window to an input signal.
To apply a window to an input signal:
Create the dsp.Window
object and set its properties.
Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?.
returns a window object,
win
= dsp.Windowwin
, that applies a Hamming window with symmetric
sampling.
returns a window object with the win
= dsp.Window(WINDOW
)WindowFunction
property
set to WINDOW
.
win = dsp.Window(
returns a window object with the WINDOW
,Name,Value
)WindowFunction
property
set to WINDOW
and with other specified properties set to the specified
values.
To use an object function, specify the
System object™ as the first input argument. For
example, to release system resources of a System object named obj
, use
this syntax:
release(obj)
This object implements the algorithm, inputs, and outputs described on the Window Function block reference page. The object properties correspond to the block parameters, except:
Operation — The dsp.Window
object does
not support the Generate window
option.
Operation — The Generate and apply
window
option on the block corresponds to the
WeightsOutputPort
property set to true
on the
dsp.Window
object.
The dsp.Window
object only supports frame-based processing.