How can I use data size of the message in stateflow?
조회 수: 2 (최근 30일)
이전 댓글 표시
I have defined message queue of size 1. In message property data size is set as 10. When try to access message data as M.data(0) matlab gives an error. How to access data element as array in stateflow message.
댓글 수: 0
답변 (1개)
Muthukumar Ganesan
2022년 8월 1일
Hi,
For a Stateflow with C action language, to index arrays square brackets should be used. Ex: M.data[0]
Thanks
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!