主要内容

ModifyFilter

Modify filter in data set

Description

DataObjMod = ModifyFilter(DataObj,Index,Expr) modifies a data set filter. Define the filter using logical operators or a logical function on the existing variables.

example

Examples

collapse all

Modify filter number 3 to keep all records where AFR < AFR_CALC + 20.

DataObjMod = ModifyFilter(DataObj, 3, 'AFR < AFR_CALC + 20');

Modify filter number 2 to apply the function MyNewFilterFunction.

ModifyFilter(DataObj, 2, 'MyNewFilterFunction(AFR, RPM, TQ, SPK)');

Input Arguments

collapse all

mbcmodel.data data object.

Input index to indicate which of the available filters you want to modify. Use the mbcmodel.data object Filters property to find the index for each filter.

Example: 2

Data Types: int

Input character vector containing the expression. To define the expression, use logical operators or a logical function on the existing variables.

Example: 'AFR < AFR_CALC + 10'

Data Types: char

Output Arguments

collapse all

Modified mbcmodel.data object.

Version History

Introduced before R2006a