How do I get the x and y values of the zoomed in portion of a linear plot from matlab figure?
2 次查看(过去 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 中查找有关 Data Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!