I create a C-file that uses a C math function, but do not include "math.h". Next, I use MATLAB 7.0 (R14) to create a MEX-file using:

`mex myfile.c`

The MEX function does not produce any errors or warnings, but when I call the MEX-file from MATLAB, I obtain incorrect results. For example, if I use the "sin" function, my results ia always 32.

## Best Answer