This is a known bug (I'm guessing). See the workaround on the MathWorks website:
Visual Studio 2012 pro and Matlab 2013a
-
12-07-2023 - |
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.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow