C compiler error in using quadprog in a simulink model using coder.extrinsic.
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Aakar
am 2 Apr. 2014
Kommentiert: Aakar
am 2 Apr. 2014
I am trying to build a Simulink function block using the "Matlab Function" block for simulink. I just want to see the output on a scope so I connected the Matlab Function block to a scope. When I run the code, it gives me an error saying there is no C compiler. I am not sure why I would require a C Compiler for just running a normal simulation. Can anyone help me with this?
I have the Matlab R2013a version.
Thanks for your time,
Regards
0 Kommentare
Akzeptierte Antwort
Ryan Livingston
am 2 Apr. 2014
The MATLAB Function Block requires a supported C compiler even for simulation:
That link shows how to install one if it is not present. If you already have a compiler installed then:
mex -setup
will guide you through choosing it.
3 Kommentare
Ryan Livingston
am 2 Apr. 2014
The interpreted MATLAB Function Block and Level-2 MATLAB S-Function block should not require a compiler:
http://www.mathworks.com/help/simulink/slref/interpretedmatlabfunction.html http://www.mathworks.com/help/simulink/slref/level2matlabsfunction.html
Most platforms either come bundled with a compiler or have freely available supported compilers as well. For R2013a:
and current:
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulink Coder finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!