主要内容

AddTestFilter

Add test filter to data set

Description

DataObjMod = AddTestFilter(DataObj,Expr) adds a test filter to the data set that excludes some tests. Define the filter using logical operators or a logical function on the existing variables.

example

Examples

collapse all

Include all tests in which all records have speed, n, greater than 1000.

DataObjMod = AddTestFilter(DataObj, 'any(n>1000)');

Include all tests with more than 6 records.

DataObjMod = AddTestFilter(DataObj, 'length(LOGNO) > 6');

Input Arguments

collapse all

mbcmodel.data data object.

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