How can I add additional properties to Parameters in a Simulink Data Dictionary?

Is there a way to add additional properties to the variables in a Simulink Data Dictionary in MATLAB R2021b?

 Accepted Answer

    You can create your own package to define custom data object classes that subclass "Simulink.Parameter" and "Simulink.Signal". You can use this technique to add your own properties and methods to data objects. To create a data class package, you can either use a built-in example or manually define the data class. Once the class is defined, you can create instances of these classes for use in Simulink programmatically or through the Model Explorer.
    For more information about this workflow, please refer to the following documentations:

    More Answers (0)

    Categories

    Find more on Manage Design Data in Help Center and File Exchange

    Products

    Release

    R2021b

    Community Treasure Hunt

    Find the treasures in MATLAB Central and discover how the community can help you!

    Start Hunting!