How do i find out if a queue is not empty?
2 次查看(过去 30 天)
显示 更早的评论
Hi. I'm modelling an elevator with SimEvents. Therefore i want to know at certain points, if there's someone waiting in the different levels of the building, which means there's an entity in the respective entity queue. My idea was to compare the number of entities in the queue with a compare to constant block. But then i don't know how to continue.
Regards!
0 个评论
回答(1 个)
Abdolkarim Mohammadi
2021-6-24
At such points, the next block to which the Compare blocks are connected, is a Hit crossing block.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Discrete-Event Simulation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!