| 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 = DefineTestGroups(D, variables, tolerances, testnumAlias, reorder)
This is a method of mbcmodel.data.
You can impose rules to collect records of the current data set (D) into groups; these groups are referred to as tests. Test groupings are used to define hierarchical structure in the data for two-stage modeling.
Select a variable or variables to group by and set tolerances. The tolerance is used to define groups: on reading through the data, when the value of any specified variable changes by more than the tolerance, a new group is defined.
variables is the input cell array of strings holding the SignalNames on which to define the test groupings.
tolerances is the input double array of the same length as variables holding the required tolerances for the test grouping definition.
testnumAlias is an optional string input to define the SignalName that should be used as the testnumber within MBC. Defaults to the index of the test.
Note testnumAlias uses the first record in the test as the testnumber, and testnumbers are unique so any duplicates will be modified. |
reorder is an optional Boolean indicating that the data should be reordered within the data set. Defaults to false.
See the section on Test Groupings (under Data) in the Model Browser User's Guide for more information on these inputs.
DefineTestGroups(D, {'AFR' 'RPM'}, [0.1 30], 'MYLOGNO', false);DefineNumberOfRecordsPerTest, NumberOfTests
![]() | DefineNumberOfRecordsPerTest | designconstraint | ![]() |

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 |