Delta between two data cursor points in plot

Is there a way to display the x or y axis delta between 2 data cursor points in a plot?

回答(2 个)

You can do this in the 'UpdateFcn' of the datacursormode object.

2 个评论

Can you elaborate a little more on this? I'm using guide to create a GUI and I am pretty new at this still.
If I get some time later this afternoon. I have a full plate right now.
doc datacursormode
Look at the examples, they should get you started.

请先登录,再进行评论。

Chad Smith
Chad Smith 2013-3-27
编辑:Chad Smith 2013-3-27
Yes there is, and using the cursor's 'UpdateFcn' is the way to do it.
This page is explicit in how to accomplish this and has an example:

类别

帮助中心File Exchange 中查找有关 Simulink 的更多信息

标签

提问:

2013-2-19

评论:

2021-11-2

Community Treasure Hunt

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

Start Hunting!

Translated by