主要内容

CreateDesign

Create design object for test plan or model

    Description

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

    example

    D = CreateDesign(Testplan,Level) creates a design for the specified level, Level, of the test plan.

    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,Name1,Value1,...) creates a design for the specified level of the mbcmodel.testplan object, with the specified name-value pairs.

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

    D = CreateDesign(Model,Name1,Value1,...) creates a design based on the inputs of the mbcmodel.model object, with the specified name-value pairs.

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

    D = CreateDesign(Inputs,Name1,Value1,...) creates a design based on the inputs of the mbcmodel.modelinput object, with the specified name-value pairs.

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

    Examples

    collapse all

    Create a space-filling design for the 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, augmentedDesign, based on an existing design, ActualDesign, in order to augment the design.

    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');

    Input Arguments

    collapse all

    Test plan objects, specified as a mbcmodel.Testplan object created by CreateTestplan.

    Test plan level, specified as either 1 or 2. By default, the level is the outer level: 1 for one-stage design and 2 (global) for two-stage design.

    Model objects, specified as a mbcmodel.model object.

    Input objects, specified as a mbcmodel.modelinput object.

    Design object being copied, specified as a design object.

    Name-Value Arguments

    collapse all

    Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

    Example: 'Type','V-optimal'

    Design time, specified as the comma-separated pair consisting of 'Type' and a value.

    Example: 'Type','Latin Hypercube Sampling'

    Design name, specified as the comma-separated pair consisting of 'Name' and a value.

    Example: 'Name','Optimal Design'

    Output Arguments

    collapse all

    Output design object created by CreateDesign, returned as a design object.

    More About

    collapse all

    Version History

    Introduced in R2008a