simevents entity generation with attributes
3 views (last 30 days)
Show older comments
Mats on 6 Apr 2022
Commented: Mats on 9 Apr 2022
How do I using MDES create an entity and set it's attributes based on an input signal?
Abdolkarim Mohammadi on 7 Apr 2022
Edited: Abdolkarim Mohammadi on 7 Apr 2022
You must set the attribute in the Generate event action, using in1.
function [entity,events] = generate(obj,storage,entity,tag,in1)
entity.data.Attribute1 = in1;
events = ;
Find more on Discrete-Event Simulation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!