How to exract data from a figure and insert x and y values into a .mat file ?

1 回表示 (過去 30 日間)
Cladio Andrea
Cladio Andrea 2015 年 2 月 18 日
回答済み: emehmetcik 2015 年 2 月 18 日
Hello everyone, i have a discrete plot figure , which shows the generated packet size over time , i want to see the x and y values in .mat file i use that
x = get(gco,'xdata')
y = get(gco,'ydata')
now i have the x and y values(200 per each), but i wanna have a .mat file 200x2 that shows x and and its corresponding y in the same row, Can anyone help please? Thank you so much in advance!

採用された回答

emehmetcik
emehmetcik 2015 年 2 月 18 日
z = [x(:), y(:)];
save('MatFileName', 'z')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePrinting and Saving についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by