主要内容

ModifyTestFilter

Modify test filter in data set

Description

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

example

Examples

collapse all

Modify test filter number 2 to include all tests in which any records have speed, n, greater than 2000.

DataObjMod = ModifyTestFilter(DataObj, 2, 'any(n>2000)');

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