Get list of global variables used by model reference

1 次查看(过去 30 天)
Sometimes when I run a model with referenced models, I see a message like this:
### Model reference < redacted > may be out of date because global variables used by this model are incompatible with the variables that were in the base workspace when the target was generated. This model uses global variable(s): '<unfortunately_long_list_of_variables>'.
I would like to know if there's a way to get this list of globals that the model uses without having to deliberately change a global just to see this message. Thanks.

采纳的回答

Carl Banks
Carl Banks 2022-6-16
Simulink.findVars is the answer. Been in Matlab since 2010a.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Environment Customization 的更多信息

产品


版本

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by