开发者

MATLAB to C code conversion [duplicate]

开发者 https://www.devze.com 2023-01-26 04:50 出处:网络
This question already has answers here: 开发者_如何学Python Closed 11 years ago. Possible Duplicate:
This question already has answers here: 开发者_如何学Python Closed 11 years ago.

Possible Duplicate:

Matlab to C or C++

is there any software to convert MATLAB code to c....


Yes. Embedded Matlab. Works well but only allows use of a subset of matlab functions.

http://www.mathworks.co.uk/products/featured/embeddedmatlab/

It is fine for converting your algorithms into C without having to worry about the possibility of errors being introduced in hand conversion. you will need a license for rtw.

http://www.mathworks.co.uk/products/rtw/


MATLAB is able to compile your .m files to binary files if you just want them to run faster:

http://www.mathworks.com/help/toolbox/compiler/mcc.html


If C++ is acceptable, you could try a library such as Armadillo, which provides C++ versions of many MATLAB functions. This allows for a relatively easy conversion of many functions.

0

精彩评论

暂无评论...
验证码 换一张
取 消