主要内容

ModelSetup

Open Model Setup dialog box where you can alter model type

    Description

    [newModel, OK] = ModelSetup(oldModel) opens the Model Setup dialog box where you can choose new model types and settings.

    Input Arguments

    collapse all

    Input model being set up, specified as a mbcmodel.model object.

    Changes to make in the dialog box, specified as either false or true.

    • If you click Cancel to close the dialog box, this argument is set to OK = false and newModel = oldModel.

    • If you click OK to close the dialog box, then OK = true and newModel is your new chosen model setup. Data and response remain the same as oldModel.

    The new model is refitted when you click OK.

    Output Arguments

    collapse all

    Out model with updated type and settings, returned as a mbcmodel.model object.

    Call UpdateResponse to put the new model type back into the response.

    Version History

    Introduced in R2006a