can I obtain the values of a plot in tabular form

조회 수: 2 (최근 30일)
sudheer yallapragada
sudheer yallapragada 2018년 3월 18일
댓글: sudheer yallapragada 2018년 3월 19일
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....
sudheer yallapragada
sudheer yallapragada 2018년 3월 19일
yeah I have

댓글을 달려면 로그인하십시오.

답변 (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에서 Specifying Target for Graphics Output에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by