Is it possible to convert mex code to C ++ code?

I wrote some mex (C ++) code, I used mxArrays and several other Matlab functions, I wonder if it is easy to convert it to C ++ code by including the appropriate header and making some minor changes?

edit: By "convert" I mean that I want to compile and run my code without relying (using) on ​​matlab.

+5
source share
2 answers

As mentioned in the comments above, this work depends a lot on the nature of the MATLAB functions you use. Since you have successfully ported most of your MATLAB code to C ++, I suggest that you continue to do this until you no longer rely on MATLAB libraries to build.

- , ? , , .

!

0

SimulinkCoder - Matlab... Matlab , .

  • Simulink S-, mex.
  • SimulinkCoder (Real Time Workshop), Simulink.
0

All Articles