简体   繁体   中英

MATLAB Coder function is undefined in 2014a

I am trying to convert the expm function for calculating the exponential of a matrix from C++ to Mex, in order to increase efficiency. However, this would be a very arduous task to convert the C++ code into Mex viable code, and then run the mex "filename.cpp" function.

Thus I was hoping to use the coder function provided by MATLAB to do this. However I have MATLAB version 2014a and when I try to run the function, it gives me the error:

Undefined function or variable 'coder'.

I thought that this function was available in all versions of MATLAB after 2011a, so why is this error occurring and how can I fix it?

Functionality for converting a subset of the MATLAB language to C (NB, not C++), such as the command coder , is included in MATLAB Coder, an add-on product to MATLAB. It's not part of core MATLAB.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM