Import variable from workspace
The SignalSource
object imports a variable from the
MATLAB® workspace.
To import a variable from the MATLAB workspace:
Create the dsp.SignalSource
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 signal
source System object™, src
= dsp.SignalSourcesrc
, that outputs the variable, specified
by the Signal
property, one sample or frame at a time.
returns a signal source object, src
= dsp.SignalSource(signal
,spf
)src
, with the
Signal
property set to signal
and the SamplesPerFrame property set to
spf
.
src = dsp.SignalSource(
returns a
signal source object, Name,Value
)src
, with each specified property set to the
specified value.
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 Signal From Workspace block reference page. The object properties correspond to the block parameters, except the System object does not have properties that correspond to the Sample time or Warn when frame size does not evenly divide input length block parameters.