MATLAB Answers

can I obtain the values of a plot in tabular form

3 views (last 30 days)
sudheer yallapragada
sudheer yallapragada on 18 Mar 2018
I need the coordinate values of each and every point which are combined together to form a graph in a Tabular form, can I?


Show 1 older comment
sudheer yallapragada
sudheer yallapragada on 19 Mar 2018
I only have plots obtained after executing the code written.
KSSV on 19 Mar 2018
You have executed the you data in hand right....

Sign in to comment.

Answers (1)

Von Duesenberg
Von Duesenberg on 19 Mar 2018
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;


Sign in to comment.