How to programmatically get the Data cursor value in Simulink Data Inspector
4 次查看(过去 30 天)
显示 更早的评论
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 ?
0 个评论
回答(2 个)
Manas Andhare
2020-11-5
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.
Arvind R.
2021-4-14
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Analyze Simulation Results 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!