Model Browser User's Guide    

Parameters

Inside the subsystem, some blocks depend on parameters that have not been quantified. In fuelPuddle.mdl there is a constant block whose value is 'x' and a gain block with the value '1/tau'.

These are the parameters we will be fitting by regression using MBC. The following setup needs to be followed:

  1. Having masked the subsystem, you need to pass the unknown parameters in to the subsystem. We need to pass them in from the workspace. This is done via a Block Parameters dialog. To create such a dialog, right-click the masked subsystem and select Edit mask to see the Mask Editor. Use the Add button to add fields. Here we require two parameters. The Variable field must match the name of the corresponding parameter in the subsystem. Having declared the necessary parameters (all the unknowns of the subsystem), click OK to close and save.

  2. On double-clicking on the subsystem mask, the Block Parameters dialog appears with the Prompt and variable names declared in the Mask Editor. By default the variable names appear in the edit boxes, and these should not be changed. It is these names that the Simulink model tries to find in the workspace.

  3. The same variable names must also be used in the template m-file that we shall discuss later. For this example the template m-file is fuel Puddle.m.

  Transient Models Checking the Model