Is it possible to use hashmap to store data in simulink?

조회 수: 7 (최근 30일)
Ho Jung Kim
Ho Jung Kim 2022년 7월 14일
댓글: Ho Jung Kim 2022년 7월 15일
I want to use hasmap in simulink to store sojourn time of all entities? I am using start timer and read timer to get the sojourn time of each entity and want to print it after all the simulation is over. Is it possible to use hashmap as global and store sojourn time in simulink? Thank you.

답변 (1개)

Rishita
Rishita 2022년 7월 15일
Setting 'UniformValues' to true and defining the size ahead of time. You might be able to get somewhere better performance that way.
  댓글 수: 1
Ho Jung Kim
Ho Jung Kim 2022년 7월 15일
Thank you for answering my question!
I know how to use map containers in Matlab but my question is how should I use it in Simulink. Is there a way to declare map containers in Simulink? or should I make a hashmap in Matlab and call it in simulink? (But I don't know how to do this way)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 SimEvents에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by