Products & Services Solutions Academia Support User Community Company

Learn more about Model-Based Calibration   

ModifyFilter - Modify user-defined filter in data set

Syntax

D = ModifyFilter(D, Index, expr)

Description

This is a method of mbcmodel.data.

You call this method to modify the expression that defines existing filters.

D is a data object.

Index is the input index to indicate which of the available filters you wish to modify. Use the property Filters to find the index for each filter.

expr is the input string holding the expression that defines the filter, as for AddFilter.

Examples

ModifyFilter(D, 3, 'AFR < AFR_CALC + 20');

The effect of this filter is to modify filter number 3 to keep all records where AFR < AFR_CALC + 20.

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

This modifies filter number 2 to apply the function MyNewFilterFunction.

See Also

AddFilter, RemoveFilter, Filters

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS