S Function Vs Matlab Function