How do i find out if a queue is not empty?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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!![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/657530/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/657530/image.png)
0 Commenti
Risposte (1)
Abdolkarim Mohammadi
il 24 Giu 2021
At such points, the next block to which the Compare blocks are connected, is a Hit crossing block.
Vedere anche
Categorie
Scopri di più su Discrete-Event Simulation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!