When attempting to build an s-function using the fixed-point data type I receive an error. I have checked the mex setup options and as far as I can tell everything is configured correctly.
I have used this exact s-function builder using 32-bit version of Matlab 2012a. However, when I use the 64-bit version of Matlab 2012a I get an error. I have also tried with 2012b and 2013a 64-bit version and receive the same error.
An unexpected error occurred during compilation. Please verify the following:
-The MEX command is configured correctly. Type 'mex -setup' at
MATLAB command prompt to configure this command.
-The S-function settings in the Initialization or Libraries tab were entered incorrectly.
(i.e. use comma separated list for the library/source files)
-If S-Function Builder dialog box in an invalid state, please restart
MATLAB before using this dialog further.
Best Answer