can I obtain the values of a plot in tabular form

3 次查看(过去 30 天)
I need the coordinate values of each and every point which are combined together to form a graph in a Tabular form, can I?
  4 个评论
KSSV
KSSV 2018-3-19
You have executed the code....so you data in hand right....

请先登录,再进行评论。

回答(1 个)

Von Duesenberg
Von Duesenberg 2018-3-19
It depends on the kind of plot you have, but the following example should put you on the right track:
plot(1:10,[1 2 1 2 3 2 1 2 3 2], 'ro')
ax = get(gca, 'Children');
xData = ax.XData;
yData = ax.YData;

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by