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 个)

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 的更多信息

产品

版本

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