필터 지우기
필터 지우기

Data Cursor extract data and put into table

조회 수: 29 (최근 30일)
Aiveen
Aiveen 2014년 4월 8일
댓글: Amir Torabi 2019년 12월 13일
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
Amir Torabi
Amir Torabi 2019년 12월 13일
Hello.
Could you please explain how you solved your problem? I have the same problem?

댓글을 달려면 로그인하십시오.

채택된 답변

Dishant Arora
Dishant Arora 2014년 4월 8일
coordinates = cell2mat({cursor_info.Position}');
  댓글 수: 2
Aiveen
Aiveen 2014년 4월 9일
Thank you very much. It was exactly what I needed.
Mustafa Vardaroglu
Mustafa Vardaroglu 2019년 9월 19일
Thanks a lot. I've also been looking for that!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by