主要内容

CreateResponse

Create response model for test plan

Description

R = CreateResponse(TPObj,VarName) creates a response model, VarName, using the test plan default models, TPObj.

R = CreateResponse(TPObj,VarName,Model) creates a one-stage response model, Model, where TPObj is a one-stage test plan object.

R = CreateResponse(TPObj,VarName,LocalModel,GlobalModel) creates a two-stage response model specified by LocalModel and GlobalModel.

R = CreateResponse(TPObj,VarName,LocalModel,GlobalModel,DatumType) creates a two-stage response model with a local datum model specified by DatumType.

example

Examples

collapse all

Create a response using the default models.

R = CreateResponse(T, 'torque');
TQ_response = CreateResponse(testplan, 'TQ');

Create a response and specify the local and global model types.

models = T.DefaultModels
LocalModel = CreateModel(models{1}, 'Local Polynomial Spline');
GlobalModel = CreateModel(models{2}, 'RBF');
R = CreateResponse(T, 'TQ', LocalModel, GlobalModel, 'Maximum')

Input Arguments

collapse all

Test plan, specified as a project object.

Response model variable name, specified as a character vector.

Data Types: char | string

One-stage model object, specified as a mbcmodel.model object.

Data Types: char | string

Local model object, specified as a mbcmodel.localmodel object.

Data Types: char | string

Response feature model object, specified as a mbcmodel.response object.

Data Types: char | string

Datum type, specified as 'None', 'Maximum', 'Minimum', or 'Linked'. You can specify a datum type if the local model type allows a datum model. Model types Polynomial Spline and Polynomial with Datum allow datum models.

Data Types: char | string

Output Arguments

collapse all

Response model object, returned as a mbcmodel.response object.

Data Types: char | string

Version History

Introduced before R2006a