MATLAB: What is the value of the Signal Threshold when ‘auto’ option is used (Zero-Crossing Detection)

crossingsimulinksolverzero

What is the value of the Signal Threshold when 'auto' option is used (Zero-Crossing Detection)?
The parameter 'ZCThreshold' can be set to an absolute value or to 'auto' (in the configuration parameters or via Simulink API).
If using the latter it is unclear which value is used.

Best Answer

For the “auto” threshold, its value equals to the relative tolerance of the solver setting, when “auto” is used.
The developers of the Zero-Crossing detection published a paper some years ago including more details about the algorithm.
The paper can be found here: