主要内容

Export

Make command-line or Simulink export model

    Description

    ExportedModel = Export(model) exports the model to MATLAB®.

    ExportedModel = Export(model,format) exports the model in the specified format, which can be 'MATLAB' or 'Simulink'.

    example

    Examples

    collapse all

    Export model to MATLAB.

    M = Export(R2, 'MATLAB');
    mbt_model = Export(maxTQ, 'MATLAB');

    Input Arguments

    collapse all

    Model object, specified as a mbcmodel.linearmodel object. model contains the response models from the node you are exporting from.

    Format of exported model, specified as 'MATLAB' or 'Simulink'.

    Output Arguments

    collapse all

    Model exported, specified as an xregstatsmodel object. You can use ExportedModel to evaluate the model and calculate the prediction error variance. If you convert an mbcmodel.localresponse object and you have not created a two-stage model (hierarchical response object), then the output is an mbcPointByPointModel object that you can use to evaluate the model and calculate the prediction error variance.

    You can evaluate models exported to the MATLAB workspace in the same way as when you export them from the Model Browser. You can save these models as a *.mat file and load them into CAGE.

    More About

    collapse all

    Version History

    Introduced before R2006a