add matlab function definition