add helper function to compile matlab code