dsp.ArrayVectorMultiplier
(Removed) Multiply array by vector along specified dimension
dsp.ArrayVectorMultiplier
has been removed. Use the
.*
operator instead. For more information, see Compatibility Considerations.
Description
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 array-vector multiplication object. See Construction.
Call
step
to multiply the array according to the properties ofdsp.ArrayVectorMultiplier
. The behavior ofstep
is specific to each object in the toolbox.
Note
Starting in R2016b, instead of using the step
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)
and y = obj(x)
perform equivalent operations.
Construction
avm = dsp.ArrayVectorMultiplier
returns an array-vector
multiplication object, avm
, that multiplies an input
N-D array by the elements of a vector along the second dimension.
avm = dsp.ArrayVectorMultiplier('
returns an array-vector multiplication object, PropertyName
',PropertyValue
,...)avm
,
with each property set to the specified value.
Properties
|
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 |
Methods
step | Multiply array by vector |
Common to All System Objects | |
---|---|
release | Allow System object property value changes |
Examples
Algorithms
This object implements the algorithm, inputs, and outputs described on the Array-Vector Multiply block reference page. The object properties correspond to the block parameters, except:
The array-vector multiplication object does not have Minimum or Maximum options for data output.