Which are the alternative codes of heaviside() function?
18 views (last 30 days)
GandaBerunda on 16 Jun 2022
Instead of using the heaviside() function, you can define your own function with a simple if elseif ladder. If the parameter is less than 0, you can return 0, at equal to 0, return 0.5 and greater than 0 return 1.
Hope it helps.