Documentation

dsp.ArrayVectorAdder

添加阵列以沿指定的维度向矢量

Description

TheArrayVectorAdder对象将N-D阵列添加到沿指定维度的向量。矢量的长度必须沿指定维度等于N-D阵列的大小。

添加一个一天沿着指定的数组来一个向量dimension:

  1. Define and set up your array-vector addition object. SeeConstruction

  2. Callstep根据属性添加N-D阵列dsp.ArrayVectorAdder。The behavior ofstepis specific to each object in the toolbox.

Note

Starting in R2016b, instead of using thestep执行由System Object™定义的操作的方法,您可以使用参数调用对象,就像它是一个函数一样。例如,y = step(obj,x)y = obj(x)perform equivalent operations.

Construction

ava = dsp.arrayveleradder.返回一个数组矢量加法对象,ava, that adds a vector to an N-D array along the first dimension.

ava = dsp.arrayvectoradder('财产Name',财产Value, ...)返回一个数组矢量加法对象,ava, with each property set to the specified value.

Properties

方面

方面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 is1

VectorSource

传染媒介的来源

Specify the source of the vector values as |Input port|财产|。默认为Input port

Vector

Vector values

Specify the vector values. This property applies only when you set theVectorSourceproperty to财产。默认为[0.5 0.25]。此属性可调整。

定点属性

方法

step Add vector to N-D array
Common to All System Objects
release

允许系统对象属性值更改

Examples

expand all

Note:此示例仅在R2016B或更高版本中运行。如果您使用的是早期版本,请将每个呼叫替换为相同的函数stepsyntax. For example, myObject(x) becomes step(myObject,x).

Add a 2-by-1 vector to a 2-by-2 matrix along the first dimension of the array.

ava = dsp.arrayveleradder.; a = ones(2); x = [1 2]'; y = ava(a, x);

算法

该对象实现了描述的算法,输入和输出数组矢量添加block reference page. The object properties correspond to the block parameters, except:

The array-vector addition object does not haveMinimum要么最大数据输出选项。

Extended Capabilities

在R2012A介绍