How to programmatically get the Data cursor value in Simulink Data Inspector
Ältere Kommentare anzeigen
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 ?
Antworten (2)
Manas Andhare
am 5 Nov. 2020
0 Stimmen
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 Kommentar
Bharath Kumar
am 5 Nov. 2020
Bearbeitet: Bharath Kumar
am 5 Nov. 2020
Arvind R.
am 14 Apr. 2021
0 Stimmen
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
Kategorien
Mehr zu Prepare Model Inputs and Outputs finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!