Simulink: How to export to workspace all entities attributes?
조회 수: 3 (최근 30일)
이전 댓글 표시
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) ?
댓글 수: 2
TAB
2018년 5월 27일
Unclear question.
Please explain "entity" and from where are you exporting. Is this question related to Simulink/Toolbox etc ?
답변 (1개)
Krishna Akella
2018년 12월 4일
Hi Matias,
Have you tried using the assignin function? For example, in the event actions of any SimEvents block, try calling:
coder.extrinsic('assignin');
assignin('base', 'k', entity)
Assuming, k is the variable in your workspace that you want to assign the values of the entity to.
- Krishna
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Discrete-Event Simulation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!