the heaviside function is identified either as "flc1hs" or "flc2hs". It accepts two arguments, one is the condition to satisfy so that the Heasiside function returns 1 and the second is a smoothing factor "s".
An example, if I want to define a non-zero constant value "c" solely within the domain x≤x1, then:
c*flc1hs(x1-x, s)
The transition from the value "c" to 0 is smoothed according to "s".
But, if we multiply s with the heaviside function, we can also get the same thing within the domain right ?? And in my code, I want to use heaviside function with the argument as a sine wave function of time. When positive, ON, negative, OFF. Can I do that ???