主要内容

Create a Design

Set Up Model Inputs

You must first specify model inputs for which to design an experiment.

  1. Start the Model Browser part of the toolbox by typing mbcmodel at the MATLAB® command line.

  2. From the startup project node view, in the Common Tasks pane, click Design experiment.

    The New Test Plan dialog box appears.

  3. Click the Two-Stage test plan icon two stage icon in the Template pane. A two-stage model fits a model to data with a hierarchical structure.

  4. There is only one input to the global model by default. Click the up arrow button to increase the Number of factors setting to 3.

  5. Change the symbols of the three input factors to N, L, and A.

  6. Click OK to dismiss the dialog box.

    The Model Browser displays the test plan diagram with your specified model inputs.

Open the Design Editor

In the test plan view, in the Common Tasks pane, click Design experiment.

The Design Editor window appears.

Alternatively, to open the Design Editor, you can also use either of the following methods:

  • Right-click the global model in the diagram and choose Design Experiment, as shown.

  • You can also access the Design Editor by selecting the menu item TestPlan > Design Experiment.

Create a New Design

  1. Click the new button icon button in the toolbar or select File > New. A new node called appears.

  2. The new node is automatically selected. An empty Design Table appears ( or any view you last used in the Design Editor) because you have not yet chosen a design. For this example you create an optimal design for the default global model.

    You can change the model for which you are designing an experiment from within the Design Editor window by selecting Edit > Model.

  3. Rename the new node Space Fill (you can edit the names by clicking again on a node when it is already selected, or by pressing F2, as when selecting to rename in Windows Explorer).