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?

Antworten (2)

Sean de Wolski
Sean de Wolski am 19 Feb. 2013

0 Stimmen

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

2 Kommentare

Jared
Jared am 19 Feb. 2013
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.

Melden Sie sich an, um zu kommentieren.

Chad Smith
Chad Smith am 27 Mär. 2013
Bearbeitet: Chad Smith am 27 Mär. 2013

0 Stimmen

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:

Kategorien

Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 19 Feb. 2013

Kommentiert:

am 2 Nov. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by