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 件)

Sean de Wolski
Sean de Wolski 2013 年 2 月 19 日

0 投票

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 日

0 投票

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:

1 件のコメント

Lars
Lars 2021 年 11 月 2 日
The link provided is dead.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

タグ

質問済み:

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