How to get the value of 'x' from a figure?
조회 수: 5 (최근 30일)
이전 댓글 표시
Hello,
I'm trying to get the value of the x axis from a figure. I am currently using gtext, is there another way?
Cheers
댓글 수: 0
답변 (3개)
Azzi Abdelmalek
2013년 2월 12일
Click on your plot then type in command windows
x=get(gco,'xdata')
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!