Package: dsp
Add array to vector along specified dimension
The ArrayVectorAdder
object adds an ND array
to a vector along a specified dimension. The length of the vector
must equal the size of the ND array along the specified dimension.
To add an ND array to a vector along a specified dimension:
Define and set up your arrayvector addition object. See Construction.
Call step
to add the ND array according
to the properties of dsp.ArrayVectorAdder
. The behavior
of step
is specific to each object in the toolbox.
H = dsp.ArrayVectorAdder
returns
an arrayvector addition object, H
, that adds a vector
to an ND array along the first dimension.
H = dsp.ArrayVectorAdder('
returns an arrayvector addition object, PropertyName
',PropertyValue
,
...)H
,
with each property set to the specified value.

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 ND 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 
clone  Create arrayvector adder object with same property values 
getNumInputs  Number of expected inputs to step method 
getNumOutputs  Number of outputs of step method 
isLocked  Locked status for input attributes and nontunable properties 
release  Allow property value and input characteristics changes 
step  Add vector to ND array 
Add 2by1 vector to 2by2 matrix along the first dimension of the array.
hava = dsp.ArrayVectorAdder; a = ones(2); x = [1 2]'; y = step(hava, a, x);
This object implements the algorithm, inputs, and outputs described on the ArrayVector Add block reference page. The object properties correspond to the block parameters, except:
The arrayvector addition object does not have Minimum or Maximum options for data output. 