How can I crop a graph

1 次查看(过去 30 天)
Ilan Prilutski
Ilan Prilutski 2019-2-17
How can i crop a graph using GUI and then do further mathematical actions on the cropped data?
if my graph has parts of irrelevant data in the beginning and end and i want to look at the graph and use only the relevant part

回答(1 个)

Cris LaPierre
Cris LaPierre 2019-2-17
The best method that comes to mind is to modify the data that is displayed (update line XData and YData) so just the relevant data is there. Once you have the X and Y data, you can do whatever you want mathematically. When you are done, you can update the line data again to see the new results.
Here's an example of what I mean.

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by