Creating Embedded Matlab model equivalent to Level 2 S Function