can I obtain the values of a plot in tabular form

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 Kommentare

KSSV
KSSV am 18 Mär. 2018
Do you have data points in hand and then you plotted? Or you got the plot in hand?
I only have plots obtained after executing the code written.
KSSV
KSSV am 19 Mär. 2018
You have executed the code....so you data in hand right....
yeah I have

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Von Duesenberg
Von Duesenberg am 19 Mär. 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;

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by