<< ld_getsign basic_ldblocks ld_hysteresis >>

ORTD Scilab Interface Toolbox >> basic_ldblocks > ld_greaterEpsForNSteps

ld_greaterEpsForNSteps

return true, when input is greater a constant for more than N sampling steps

Calling Sequence

[sim, reached] = ld_greaterEpsForNSteps(sim, ev, in, thr, N)

Description

in * - input signal

thr - threshold constant

N - integer

If in is greater than thr for more than N time steps, reached = 1;

Otherwise reached is set to 0.


Report an issue
<< ld_getsign basic_ldblocks ld_hysteresis >>