Positive signal only

How do I take the positive values of a signal only (i.e. set negative values to zero?)
Or, in the more general case, set a clipping limit on both low and high?

Thanks!

max(sig, 0)

sig.clip(lo, hi)

hjh

1 Like

Thank you! Figured there must be a simple way to do that :slight_smile: