export numerical data from selected data tips

Hello,
After exporting data from data tips I selected in a figure, I get a struct variable. It has all the data I need but I don't know how to access it. any idea how can I convert the "Position" field to numerical array?
Thanks

답변 (3개)

KSSV
KSSV 2021년 12월 28일

0 개 추천

If S is the structure.
x = S(1).XData ;
y = S(1).YData ;
Walter Roberson
Walter Roberson 2021년 12월 28일

0 개 추천

positions = vertcat(S.Position); %assuming the struct is named S
The result will be an array with two columns.
uri zamir
uri zamir 2021년 12월 29일
편집: uri zamir 2021년 12월 29일

0 개 추천

Thanks a lot!

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

제품

릴리스

R2020a

태그

질문:

2021년 12월 28일

편집:

2021년 12월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by