Borrar filtros
Borrar filtros

Data Cursor extract data and put into table

26 visualizaciones (últimos 30 días)
Aiveen
Aiveen el 8 de Abr. de 2014
Comentada: Amir Torabi el 13 de Dic. de 2019
I am using Data Cursor to select points on my xy-graph. I then extracted the data by right clicking and selecting Export Cursor Data to Workspace. However, I am then left with a 1x32 structure. What I need is the x and y (but mainly x) coordinates of all the points I selected on the graph in a table format - one column for x and the other for y. (a) I have tried using cursor_info.Position but that just gives me a list in the command line which is almost what I want, but not quite. (b) I have also tried test = [cursor_info(:).Position]; but that gives me the x and y coordinates all in the same row. If there was a way to improve on method (a) or (b) or an entirely new method that would be brilliant. Any help would be greatly appreciated. Thank you.
  1 comentario
Amir Torabi
Amir Torabi el 13 de Dic. de 2019
Hello.
Could you please explain how you solved your problem? I have the same problem?

Iniciar sesión para comentar.

Respuesta aceptada

Dishant Arora
Dishant Arora el 8 de Abr. de 2014
coordinates = cell2mat({cursor_info.Position}');
  2 comentarios
Aiveen
Aiveen el 9 de Abr. de 2014
Thank you very much. It was exactly what I needed.
Mustafa Vardaroglu
Mustafa Vardaroglu el 19 de Sept. de 2019
Thanks a lot. I've also been looking for that!

Iniciar sesión para comentar.

Más respuestas (0)

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!

Translated by