Package: dsp
Multiply array by vector along specified dimension
The ArrayVectorMultiplier
object multiplies
an array by a vector along a specified dimension.
To multiply an array by a vector along a specified:
Define and set up your arrayvector multiplication object. See Construction.
Call step
to multiply the array according
to the properties of dsp.ArrayVectorMultiplier
. The
behavior of step
is specific to each object in the
toolbox.
H = dsp.ArrayVectorMultiplier
returns
an arrayvector multiplication object, H
, that multiplies
an input ND array by the elements of a vector along the second dimension.
H = dsp.ArrayVectorMultiplier('
returns
an arrayvector multiplication object, PropertyName
',PropertyValue
,...)H
, with each
property set to the specified value.

Dimension along which to multiply input by vector elements Specify the dimension along which to multiply the input array
by the elements of vector as a positive integer. The default is 

Source of vector Specify the source of the vector values as one of 

Vector to multiply array Specify the vector by which to multiply the array. This property
applies when you set the 
clone  Create arrayvector multiplication 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  Multiply array by vector 
Multiply a matrix by a vector:
havm = dsp.ArrayVectorMultiplier; a = ones(2); x = [2 3]'; y = step(havm, a, x);
This object implements the algorithm, inputs, and outputs described on the ArrayVector Multiply block reference page. The object properties correspond to the block parameters, except:
The arrayvector multiplication object does not have Minimum or Maximum options for data output.