主要内容

AddFilter

Add filter to data set

Description

DataObjMod = AddFilter(DataObj,Expr) adds a filter to the data set that exclude some records. Define the filter using logical operators or a logical function on the existing variables.

example

Examples

collapse all

Add a filter that keeps records when AFR < AFR_CALC +10.

DataObjMod = AddFilter(DataObj, 'AFR < AFR_CALC + 10');

Add a filter that uses the function MyFilterFunction. The function uses the variables AFR, RPM, TQ, and SPK.

DataObjMod = AddFilter(DataObj, 'MyFilterFunction(AFR, RPM, TQ, SPK)');

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