I wish to know how I can tell which specific state in my S-Function has generated a zero crossing, and depending on which state, perform a specific action for that particular state.
MATLAB: How to determine which state in the S-Function generated a zero crossing
%scrossingdetectfunctions-functionsimulinkzero
Related Question
- What functionality is afforded by ssSetModelReferenceSampleTimeDefaultInheritance and ssSetModelReferenceSampleTimeDisallowInheritance in C MEX S-functions in Simulink
- How to initialize internal information from an input signal in an S-function in Simulink
- How to allocate and free memory for a PWork vector in a C-MEX S-function
- How to use “Load from workspace => Initial state” option to initialize state variables of s-function
Best Answer