Products & Services Solutions Academia Support User Community Company

Learn more about Model-Based Calibration   

CreateDesign - Create design object for test plan or model

Syntax

D = CreateDesign(Testplan)
D = CreateDesign(Testplan,Level)
D = CreateDesign(Testplan,Level,prop1,value1,...)
D = CreateDesign(Model)
D = CreateDesign(Model,prop1,value1,...)
D = CreateDesign(Inputs)
D = CreateDesign(Inputs,prop1,value1,...)
D = CreateDesign(Design)

Description

CreateDesign is a method of mbcmodel.testplan, mbcmodel.model, and mbcmodel.modelinput. Property value pairs can be specified at creation time. The property value pairs are properties of mbcdoe.design.

Properties of mbcdoe.design

mbcdoe.design PropertyDescription
ConstraintsConstraints in design.
GeneratorDesign generation options.
InputsInputs for design.
ModelModel for design.
PointsMatrix of design points.
PointTypesFixed and free point status.
StyleStyle of design type.
NumberOfInputsRead-only — Number of model inputs.
NumberOfPointsRead-only — Number of design points.
TypeDesign type.

The design property Type can only be specified with CreateDesign and is subsequently read-only for design objects.

D = CreateDesign(Testplan) creates a design for the test plan, where Testplan is an mbcmodel.testplan object.

D = CreateDesign(Testplan,Level) creates a design for the specified level of the test plan. By default the level is the outer level (i.e., Level 1 for one-stage, Level 2 (global) for two-stage).

If you do not specify any properties, the method creates a default design type. The default design types are a Sobol Sequence for two or more inputs, and a Full Factorial for a single input.

D = CreateDesign(Testplan,Level,prop1,value1,...) creates a design with the specified properties.

D = CreateDesign(Model) creates a design based on the inputs of the mbcmodel.model object, Model.

D = CreateDesign(Model,prop1,value1,...) creates a design with the specified properties based on the inputs of the model.

D = CreateDesign(Inputs) creates a design based on the inputs of the mbcmodel.modelinput object, Inputs.

D = CreateDesign(Inputs,prop1,value1,...) creates a design with the specified properties based on the inputs.

D = CreateDesign(Design) creates a copy of an existing design.

Examples

To create a space-filling design for a test plan TP:

sfDesign = CreateDesign(TP, ...
    'Type', 'Latin Hypercube Sampling',...
    'Name', 'Space Filling');

Create an optimal design based on the inputs of a model:

optimalDesign = CreateDesign( model,...
    'Type', 'V-optimal',...
    'Name', 'Optimal Design' );

Create a classical full factorial design based on the inputs defined by a mbcmodel.modelinput object:

design = CreateDesign( inputs, 'Type', 'Full Factorial' );

Create a new design based on an existing design (ActualDesign) in order to augment it:

augmentedDesign = ActualDesign.CreateDesign('Name',...
 'Augmented Design');

Create a local level design for the two-stage test plan TP:

localDesign = TP.CreateDesign(1,'Type',...
'Latin Hypercube Sampling');

Create a global level design for the two-stage test plan TP:

globalDesign = TP.CreateDesign(2, 'Type',...
 'Latin Hypercube Sampling');

See Also

Generate; modelinput

  


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