How to get timer's UserData?
显示 更早的评论
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
采纳的回答
更多回答(1 个)
Geoff Hayes
2018-9-8
Jai - since the UserData is a struct, why not try
data = get(timer1, 'UserData');
steerData = data.steer;
类别
在 帮助中心 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!