how to create function in matlab