How do I modify the attributes of entities in a custom matlab discrete-event system block?
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?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? 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? simulink, simevents, simulation MATLAB Answers — New Questions