How to get timer's UserData?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
JAI PRAKASH
el 8 de Sept. de 2018
Comentada: JAI PRAKASH
el 8 de Sept. de 2018
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/195466/image.jpeg)
for e.g. just steer data is required.
Is there something like this
data = get(timer1, 'UserData.data'); ??
Thank you
0 comentarios
Respuesta aceptada
Más respuestas (1)
Geoff Hayes
el 8 de Sept. de 2018
Jai - since the UserData is a struct, why not try
data = get(timer1, 'UserData');
steerData = data.steer;
Ver también
Categorías
Más información sobre Time Series Events en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!