Live script tasks: Reading the variables from a table using "tasks"
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
GS76
el 13 de Oct. de 2019
Respondida: Lola Davidson
el 5 de Mzo. de 2020
To whom it may concern:
I have been using the "tasks" functionality in the Live Scripts, since its release in R2019b.
I am trying to look at table data, both columns within the table are numeric. It is attached as a *.mat file.
However, I am not able to access the variable from the table for the X-axis. What could be wrong or what am I doing wrong?
Should I place the data in another format for the "task" to work?
Thank you in advance.
0 comentarios
Respuesta aceptada
Lola Davidson
el 5 de Mzo. de 2020
Hi GS76,
The reason that you cannot access the table variable is that the "X-axis" dropdown is filtering out table variables that will cause the generated code to error. Here, the variable chosen for "X-axis" must be sorted with unique elements. Neither of the table variables in your MAT file are sorted and both contain duplicates.
This "X-axis" corresponds to the "SamplePoints" name-value pair in the function ISCHANGE. Please see this documentation page for further information: https://www.mathworks.com/help/matlab/ref/ischange.html#d118e756125
Regards,
Lola
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Tables 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!