Create MEX Files
To create a MEX file for a user-written fixed-point C S-function on either Windows® or UNIX® systems:
- In your S-function, include - fixedpoint.cand- fixedpoint.h. For more information, see Structure of the S-Function.
- Pass an extra argument, - -lfixedpoint, to the- mexcommand. For example,- mex('sfun_user_fxp_asr.c','-lfixedpoint')