Main Content

saveRULModelForCoder

Save RUL model for use in code generation

    Description

    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 or exponentialDegradationModel RUL model 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.

    Introduced in R2021a