two trigger events, can specify in different color
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi there;
My Q. is : I have to use 2 event values (A or B) to stop the dynamic in matlab , Can I distunguish between them if the dynamic stopped because of A or B event?
Any effort to help is appreciated.
Thanks
Amirah
댓글 수: 1
Chris
2023년 2월 4일
The answer is probably yes, but can you please post a working code example, so we know exactly what you're trying to do?
채택된 답변
Swaraj
2023년 3월 8일
Yes, you can distinguish between the two events “A” and “B” in MATLAB by using the “eventData” input argument of the event function.
When an event occurs, the event function is called with two input arguments: the current time and the “eventData” structure. The eventData” structure contains information about the event that triggered the function, including the name of event.
See the documentation below:
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!