How to programmatically get the Data cursor value in Simulink Data Inspector

Is there a way to programmatically get the Data cursor value of X axis in Simulink Data Inspector.
When we chose one Data cursor in the Simulink Data Inspector, moving the Data cursor shows the X axis value of simulation time.
Is there a way to get the current Data cursor positon using script ?

回答 (2 件)

Manas Andhare
Manas Andhare 2020 年 11 月 5 日

0 投票

It is my understanding that you are looking for the x-axis value of the enabled data-cursor on a Simulink Data Inspector subplot through a MATLAB API.
There is currently no API that can fetch the data-cursor value programmatically.
Please refer to Inspect and Analyze Simulation Results — Functions documentation for more information on the available Simulink APIs.

1 件のコメント

Bharath Kumar
Bharath Kumar 2020 年 11 月 5 日
編集済み: Bharath Kumar 2020 年 11 月 5 日
Thank you for confirming

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

Arvind R.
Arvind R. 2021 年 4 月 14 日

0 投票

Hi,
The ability to programitically get cursor positions in Simulation Data Inspector is now available R2021a onwards.
Here is the link to the documentation -
Thanks,
Arvind

カテゴリ

ヘルプ センター および File ExchangePrepare Model Inputs and Outputs についてさらに検索

製品

リリース

R2017a

タグ

質問済み:

2020 年 6 月 25 日

回答済み:

2021 年 4 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by