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

Antworten (3)

KSSV
KSSV am 28 Dez. 2021

0 Stimmen

If S is the structure.
x = S(1).XData ;
y = S(1).YData ;
Walter Roberson
Walter Roberson am 28 Dez. 2021

0 Stimmen

positions = vertcat(S.Position); %assuming the struct is named S
The result will be an array with two columns.
uri zamir
uri zamir am 29 Dez. 2021
Bearbeitet: uri zamir am 29 Dez. 2021

0 Stimmen

Thanks a lot!

Kategorien

Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2020a

Tags

Gefragt:

am 28 Dez. 2021

Bearbeitet:

am 29 Dez. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by