https://jp.mathworks.com/help/simulink/slref/simulink.sdi.getnumcursors.html
Simulink.sdi.getNumCursors - Check number of cursors active in the Simulation Data Inspector -...
This MATLAB function returns the number of active cursors in the Inspect pane of the Simulation Data Inspector.