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
2021 年 12 月 28 日
If S is the structure.
x = S(1).XData ;
y = S(1).YData ;
Walter Roberson
2021 年 12 月 28 日
positions = vertcat(S.Position); %assuming the struct is named S
The result will be an array with two columns.
カテゴリ
ヘルプ センター および File Exchange で Creating, Deleting, and Querying Graphics Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!