Main Content

dsp.CumulativeProduct

(要删除)通道,列或行元素的累积产物

dsp.CumulativeProduct将被删除in a future release. Use theacprod功能。有关更多信息,请参阅Compatibility Considerations

Description

dsp.CumulativeProductSystem object™ computes the cumulative product of channel, column, or row elements.

To compute the cumulative product of channel, column, or row elements:

  1. Create thedsp.CumulativeProduct对象并设置其属性。

  2. 用参数调用对象,就好像它是一个函数一样。

要了解有关系统对象如何工作的更多信息,请参阅什么是系统对象?

创建

Description

例子

cprod= dsp。肿瘤生产returns a cumulative product object,cprod,该,计算沿默认维度的输入矩阵或输入向量元素的累积乘积。

cprod= dsp. cumulative Product(Name,Value返回一个累积产品对象,每个指定属性设置为指定值。

特性

展开全部

除非另有说明,否则属性是nontunable,,,,which means you cannot change their values after calling the object. Objects lock when you call them, and the发布function unlocks them.

如果财产是可调,您可以随时更改其价值。

有关更改属性值的更多信息,请参见使用系统对象在MATLAB中的系统设计

将计算维度指定为频道(运行产品),,,,Rows, 或者

将此属性设置为trueto enable resetting the cumulative product. When you set this property totrue,,,,specify a reset signal to the object algorithm to reset the cumulative product.

依赖性

您可以在Dimensionproperty is set to频道(运行产品)

指定事件复位输入端口上标出ses resetting the cumulative product to边缘上升,,,,跌落边缘,,,,Either edge, 或者Non-zero

依赖性

This property applies when you set theRESETINPUTPORT财产为trueDimension财产为频道(运行产品)

Fixed-Point Properties

将圆形方法指定为一种天花板,,,,Convergent,,,,Floor,,,,最近,,,,Round,,,,Simplest, 或者

Specify the overflow action as one oforSaturate

Specify the intermediate product fixed-point data type as与输入相同orCustom

将中间产品定义点类型指定为缩放numerictype(Fixed-Point Designer)OBJect with aSignednessofAuto

依赖性

This property applies when you set theIntermediateProductDataType财产为Custom

将产品输出定义数据类型指定为|与输入相同|Custom|。

将产品输出定义点类型指定为缩放numerictype(Fixed-Point Designer)OBJect with aSignednessofAuto

依赖性

This property applies when you set theProductDatatype财产为Custom

将累加器定义数据类型指定为与产品输出相同,,,,与输入相同, 或者Custom

将累加器定义点类型指定为缩放numerictype(Fixed-Point Designer)OBJect with aSignednessofAuto

依赖性

This property applies when you set the累积财产为Custom

Specify the output fixed-point data type as one of |与产品输出相同|与输入相同|Custom|。

将输出定点类型指定为缩放numerictype(Fixed-Point Designer)OBJect with aSignednessofAuto

依赖性

This property applies when you set theOutputDatatype财产为Custom

Usage

Description

例子

y= cprod(X计算输入的指定维度的累积产品X

y= cprod(X,,,,rresets the cumulative product object's state based on theResetCondition属性值和重置信号的值,r,,,,when theRESETINPUTPORTproperty istrue

输入参数

展开全部

数据输入,,,,specified as a vector or a matrix.

数据类型:单身的|double|int8|int16|int32|int64|UINT8|uint16|UINT32|Uint64|fi
复杂的数字支持:金宝app是的

重置信号used to reset the running cumulative product, specified as a scalar. The object resets the running cumulative product if the reset signal satisfies theResetCondition

依赖性

This input is applicable only whenDimensionis set to“频道(运行产品)”andRESETINPUTPORTis set totrue

数据类型:单身的|double|int8|int16|int32|UINT8|uint16|UINT32|逻辑|fi

输出参数

展开全部

输入信号的累积产物,作为向量或矩阵返回。

输出信号的大小,数据类型和复杂性特征匹配输入信号的大小,相匹配。

数据类型:单身的|double|int8|int16|int32|int64|UINT8|uint16|UINT32|Uint64|fi
复杂的数字支持:金宝app是的

对象功能

要使用对象函数,请将系统对象指定为第一个输入参数。例如,释放名称的系统对象的系统资源OBJ,,,,use this syntax:

发布(obj)

展开全部

System objectalgorithm
发布 释放资源并允许更改System object属性值和输入特征
reset Reset internal states ofSystem object

Examples

collapse all

笔记

如果您使用的是R2016A或较早版本,请用等效步骤语法替换每个对象的调用。例如,OBJ(x)becomes步(obj,x)

使用dsp.CumulativeProductOBJect to compute the cumulative product of a matrix.

cprod = dsp。肿瘤生产; x = magic(2)
x =2×21 3 4 2
y =cprod(x)
y =2×21 3 4 6

累积产物沿每个通道计算列计算。

Algorithms

This object implements the algorithm, inputs, and outputs described on theCumulative Productblock reference page. The object properties correspond to the block parameters, except theReset portblock parameter corresponds to both theResetConditionandRESETINPUTPORT对象属性。

扩展功能

版本历史记录

Introduced in R2012a

展开全部

Warns starting in R2021b

也可以看看

功能