Dear Fellows(adsbygoogle = window.adsbygoogle || []).push({});

I need to define a function "f" in matlab as

f is a heaviside unit step function

I did it as

f = heaviside[abs(-4)]

but it is not working as I required.

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Heaviside function in matlab

**Physics Forums | Science Articles, Homework Help, Discussion**