Main Content


Save RUL model for use in code generation

Since R2021a


    saveRULModelForCoder(mdl,filename) saves an RUL model to a MAT file for use in code generation. Use the file with loadModelForCoder in an entry-point function for code generation to reconstruct the model at compile time. See Generate Code for Predicting Remaining Useful Life for more information.

    Input Arguments

    collapse all

    RUL model to save, specified as a linearDegradationModel, a exponentialDegradationModel, a reliabilitySurvivalModel, or a covariateSurvivalModel object. saveRULModelForCoder stores the properties of mdl in the MAT file filename.

    Name of file in which to save the RUL model, specified as character vector or a string. You can specify a full or relative path in filename. The function creates a MAT file.

    Version History

    Introduced in R2021a