How do I modify the attributes of entities in a custom matlab discrete-event system block?

1 次查看(过去 30 天)
I want to modify the entity attribute during the simulation in a custom matlab discrete-event system block.As shown below. But when I debugged the simulation, it turned out that the attribute of entity was restored to its original value after the program jumped out of the function that changed its value. How can I modify the attributes correctly?

采纳的回答

YOUNG
YOUNG 2024-8-10
This problem has been fixed. Thanks for the answer from Changing Structure field value from a function

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Discrete-Event Simulation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by