dsp.ArrayVectorAdder
(To be removed) Add array to vector along specified dimension
dsp.ArrayVectorAdder
will be removed in a future release. Use the+
operator instead. For more information, seeCompatibility Considerations.
Description
TheArrayVectorAdder
object adds an N-D array to a vector along a specified dimension. The length of the vector must equal the size of the N-D array along the specified dimension.
添加一个一天沿着指定的数组来一个向量dimension:
Define and set up your array-vector addition object. SeeConstruction.
Call
step
to add the N-D array according to the properties ofdsp.ArrayVectorAdder
. The behavior ofstep
is specific to each object in the toolbox.
Note
Starting in R2016b, instead of using thestep
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)
andy = obj(x)
perform equivalent operations.
Construction
ava = dsp.ArrayVectorAdder
returns an array-vector addition object,ava
, that adds a vector to an N-D array along the first dimension.
ava = dsp.ArrayVectorAdder('
returns an array-vector addition object,PropertyName
',PropertyValue
, ...)ava
, with each property set to the specified value.
Properties
|
Dimension along which to add vector elements to input Specify the dimension along which to add the input array to the elements of the vector as a positive integer. The length of the vector must match the size of the N-D array along the specified dimension. The default is |
|
Source of vector Specify the source of the vector values as | |
|
Vector values Specify the vector values. This property applies only when you set the |
Methods
step | Add vector to N-D array |
Common to All System Objects | |
---|---|
release |
Allow System object property value changes |
Examples
Algorithms
This object implements the algorithm, inputs, and outputs described on theArray-Vector Addblock reference page. The object properties correspond to the block parameters, except:
The array-vector addition object does not haveMinimumorMaximumoptions for data output. |