How do I access model workspace variables in simulink/simevents?

67 views (last 30 days)
Mats
Mats on 28 Apr 2015
Commented: Ryan Livingston on 2 Jun 2015
I have varying transport times in a discrete events system. I have created a matrix of the times in the model workspace but I cannot find how i access that variable from within the model.
I currently have a Attribute function where I try to access the model workspace. How do I do?

Answers (1)

Sainath Varikuti
Sainath Varikuti on 29 Apr 2015
Edited: Sainath Varikuti on 29 Apr 2015
You can view the model workspace variables in Model Explorer or use the methods of Simulink.ModelWorkspace class to operate on model workspace variables.
  3 Comments
Ryan Livingston
Ryan Livingston on 2 Jun 2015
Documentation for Sebastian's comment is here. See the section Setting Data Scope for how to change the scope to a parameter.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!