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

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.

Antworten (1)

Rishita
Rishita am 15 Jul. 2022

0 Stimmen

Setting 'UniformValues' to true and defining the size ahead of time. You might be able to get somewhere better performance that way.

1 Kommentar

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)

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Discrete-Event Simulation finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 14 Jul. 2022

Kommentiert:

am 15 Jul. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by