How to get timer's UserData?
조회 수: 8 (최근 30일)
이전 댓글 표시
I am fetching timer's UserData with the below command
data = get(timer1, 'UserData');
Problem is, it gives whole userdata. Suppose if only partial data is required.
for e.g. just steer data is required.
Is there something like this
data = get(timer1, 'UserData.data'); ??
Thank you
댓글 수: 0
채택된 답변
추가 답변 (1개)
Geoff Hayes
2018년 9월 8일
Jai - since the UserData is a struct, why not try
data = get(timer1, 'UserData');
steerData = data.steer;
참고 항목
카테고리
Help Center 및 File Exchange에서 Time Series Events에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!