How to find enumeration usage in simulink model
1 view (last 30 days)
Show older comments
Fabian on 6 Feb 2023
Commented: Fabian on 25 Apr 2023
we have a large quantiy of enumerations like this:
classdef Connection < Simulink.IntEnumType
function retVal = getDefaultValue()
retVal = Connection.Disconnected;
function retVal = addClassNameToEnumNames()
retVal = true;
they are distributed in several *.m files. Quite a few of them are outdated and not in use anymore. Is there a simple way to figure out whether a enum is acutally in use by a simulink model? Obviously i could remove them from the search path one by one and wait for Simulink to complain about the missing enum, but this is kind of tedious.
I could not find the enums in the model explorer or model data editor.
Anyone got ideas?
Mark McBroom on 8 Feb 2023
I believe the dependency analysis feature of SImulink Projects will do this for you. You will first have to set up a Simulink Project. https://www.mathworks.com/help/simulink/ug/model-dependency-viewer.html
More Answers (0)
Find more on Sources in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!