Delta between two data cursor points in plot

15 次查看(过去 30 天)
Is there a way to display the x or y axis delta between 2 data cursor points in a plot?

回答(2 个)

Sean de Wolski
Sean de Wolski 2013-2-19
You can do this in the 'UpdateFcn' of the datacursormode object.
  2 个评论
Jared
Jared 2013-2-19
Can you elaborate a little more on this? I'm using guide to create a GUI and I am pretty new at this still.
Sean de Wolski
Sean de Wolski 2013-2-19
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:

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by