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

 Respuesta aceptada

Walter Roberson
Walter Roberson el 8 de Sept. de 2018

0 votos

R2014b or later
timer1.UserData.steer

Más respuestas (1)

Geoff Hayes
Geoff Hayes el 8 de Sept. de 2018

0 votos

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

1 comentario

JAI PRAKASH
JAI PRAKASH el 8 de Sept. de 2018
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!!

Iniciar sesión para comentar.

Categorías

Más información sobre Develop Apps Using App Designer en Centro de ayuda y File Exchange.

Productos

Versión

R2018a

Etiquetas

Preguntada:

el 8 de Sept. de 2018

Comentada:

el 8 de Sept. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by