Error using Mex command!

35 次查看(过去 30 天)
Paul Hinze
Paul Hinze 2022-4-21
回答: Chandu 2022-4-25
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?

采纳的回答

Chandu
Chandu 2022-4-25
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
You can also refer to mex, supported compilers MathWorks Documentation for future reference.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Write C Functions Callable from MATLAB (MEX Files) 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by