How do I get the x and y values of the zoomed in portion of a linear plot from matlab figure?
조회 수: 5 (최근 30일)
이전 댓글 표시
I plot a wave file in matlab (audioread, plot) whcih looks something like this

I zoom into a section of this wav file, which now looks like this:

Is there a way to get all the x and y values of only this zoomed in section of the plot in the workspace?
댓글 수: 0
채택된 답변
Rik
2024년 4월 29일
You can use the XLim and YLim properties to find out the exact x and y ranges. Then you can use logical indexing to select the points that satisfy both x and y limitations.
If you get stuck, post a comment with the code you tried.
댓글 수: 0
추가 답변 (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!