| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Model-Based Calibration |
| Contents | Index |
| Learn more about Model-Based Calibration |
D = AddFilter(D, expr)
This is a method of mbcmodel.data.
A filter is a constraint on the data set used to exclude some records. You define the filter using logical operators or a logical function on the existing variables.
D is the mbcmodel.data object you want to filter.
expr is an input string holding the expression that defines the filter.
AddFilter(D, 'AFR < AFR_CALC + 10');
The effect of this filter is to keep all records where AFR < AFR_CALC +10.
AddFilter(D, 'MyFilterFunction(AFR, RPM, TQ, SPK)');
The effect of this filter is to apply the function MyFilterFunction using the variables AFR, RPM, TQ, SPK.
All filter functions receive an nx1 vector for each variable and must return an nx1 logical array out. In that array, true (or 1) indicates a record to keep, and false (or 0) indicates a record to discard.
ModifyFilter, RemoveFilter, Filters, AddTestFilter, ModifyTestFilter
![]() | AddDesign | AddTestFilter | ![]() |

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 |