add function for matlab from cmd line
add function for matlab from cmd line