Simulink: How to export to workspace all entities attributes?
7 views (last 30 days)
I have assigned 7 different attributes to each entity (mainly time stamps as the entity moves along the process). How can I export to workspace a variable containing a matrix with all the attributes (columns) for each entity (rows) ?
Krishna Akella on 4 Dec 2018
Have you tried using the assignin function? For example, in the event actions of any SimEvents block, try calling:
assignin('base', 'k', entity)
Assuming, k is the variable in your workspace that you want to assign the values of the entity to.