can I obtain the values of a plot in tabular form

3 visualizaciones (últimos 30 días)
sudheer yallapragada
sudheer yallapragada el 18 de Mzo. de 2018
Comentada: sudheer yallapragada el 19 de Mzo. de 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?
  4 comentarios
KSSV
KSSV el 19 de Mzo. de 2018
You have executed the code....so you data in hand right....

Iniciar sesión para comentar.

Respuestas (1)

Von Duesenberg
Von Duesenberg el 19 de Mzo. de 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;

Categorías

Más información sobre Specifying Target for Graphics Output en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by