Useful Matlab Simulink Resources

<< Click to Display Table of Contents >>

Navigation:  Tips & Tricks > Matlab & Simulink >

Useful Matlab Simulink Resources

Previous pageReturn to chapter overviewNext page

Mex compiler

Compatible Compilers for Current Release

When installing  64-bits Matlab, it is most likely that you will need to install an additional compatible 64-bits compiler.

For example, if a correct compiler is not available, your model will not be build properly when using "Embedded Matlab Block" with the following accompanied error message.

"The mex compiler '<unknown>' is not supported for simulation builds. Use 'mex -setup' to select a supported compiler."

or

"Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler."

Suggested solution: Install a required compiler from the list of compatible compilers for your version of Matlab.

List of Compatible Compilers for previous versions of Matlab

Additional References

How can I set up Microsoft Visual Studio 2008 Express Edition for use with MATLAB 7.7 (R2008b) on 64-bit Windows?

Building Mex Files