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?
verto find out which toolboxes you have.