Error using Mex command!
38 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Paul Hinze
am 21 Apr. 2022
Beantwortet: Chandu
am 25 Apr. 2022
Hello,
my mex command does not work.
Here is the code:
clear all;
mex -v model_IHC_BEZ2018.c complex.c
clear all;
mex -v model_Synapse_BEZ2018.c complex.c
The error message is:
Error using mex
Supported compiler not detected. For options, visit https://www.mathworks.com/support/compilers.
Error in mexANmodel (line 2)
mex -v model_IHC_BEZ2018.c complex.c
When i go on the mentioned website, I do not know which extra compiler i should install?
0 Kommentare
Akzeptierte Antwort
Chandu
am 25 Apr. 2022
Hi,
Mex function compiles and links one or more C++ source files written with MATLAB API for C++ into binary MEX file.
Regarding the error encountered, a supported mex compiler is not installed on your MATLAB.
Execute the following command in your MATLAB command terminal and check for available compilers, if no compilers found, try installing the supported compilers,
>> mex -setup
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Write C Functions Callable from MATLAB (MEX Files) finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!