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!