| |
Implementing Block Features (Writing S-Functions) |
 | | If the ZC is positive * at the beginning and at the end of the time step, this implies that the * "positive" equation was valid throughout the time step. |
 | | Likewise, if the * ZC is negative at the beginning and at the end of the time step, this * implies that the "negative" equation was valid throughout the time step. |
 | | For example, if the ZC signal is -2 at the beginning and +6 at * the end, then this suggests that the switch occurred * 25% = 100%*(-2)/(-2-(+6)) of the way into the time step. |
| www.technion.ac.il /guides/matlab/toolbox/simulink/sfg/sfun_features29.html (1746 words) |