how define a function in matlab. There are any references about how define a function in matlab in here. you can look below.