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

 채택된 답변

Walter Roberson
Walter Roberson 2018년 9월 8일

0 개 추천

R2014b or later
timer1.UserData.steer

추가 답변 (1개)

Geoff Hayes
Geoff Hayes 2018년 9월 8일

0 개 추천

Jai - since the UserData is a struct, why not try
data = get(timer1, 'UserData');
steerData = data.steer;

댓글 수: 1

JAI PRAKASH
JAI PRAKASH 2018년 9월 8일
Ya, i tried this, it works also.
But i doubt the efficiency of this method.
I mean if we can able to call just steer, I guess it would be more efficient!!

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품

릴리스

R2018a

태그

질문:

2018년 9월 8일

댓글:

2018년 9월 8일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by