Question

I'm trying to setup the visual studio 2012 compiler with matlab 2013a 64 bits on a Windows 8 64-bits machine, so that I can run a matlab function inside a simulink simulation. I made the mex -setup and mbuild -setup as I found saying in the web, but when I run the simulation, I get an error

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

Does anyone have any idea of where could be the problem?

Thanks in advance.

Was it helpful?

Solution

This is a known bug (I'm guessing). See the workaround on the MathWorks website:

http://www.mathworks.co.uk/support/bugreports/931218

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top