https://onlinebme.com/unit/matlab-function/