How do i find out if a queue is not empty?
4 ビュー (過去 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!![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/657530/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/657530/image.png)
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!