How do I prompt user to draw a rectangle (region of interest) on a surf plot figure and display only the data points within that rectangle in a new surf plot?
5 次查看(过去 30 天)
显示 更早的评论
I am developing an app where the user can convert data from .txt files to an excel file then the application displays this data as a SURF or MESH plot. I would like to add the functionality where the user can draw a rectangle on the plot itself and then the application will display a new plot with just the values within the drawin rectangle. How would I go about adding the functionality of drawing the rectangle and getting the data just within that plot?
0 个评论
采纳的回答
Sai Sri Pathuri
2019-8-6
Hi,
You may use drawrectangle function to create rectangular ROI. To draw a new plot containing the values covered by ROI, you may create a custom function using source code of ImROI function.
The following links can be referred to get more information about above functions.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!