How can I convert a matlab code to C?
2 ビュー (過去 30 日間)
古いコメントを表示
I want to convert this to C code
function [c]= add(a,b)
c=a+b
How is the compiler used to convert this to C, i am new to this. I do not have a Matlab coder.
1 件のコメント
Shashank Prasanna
2013 年 1 月 30 日
If you don't have MATLAB Coder, you will have to write it yourself. There is no other way to automatically generate C code out of MATLAB code.
採用された回答
Walter Roberson
2013 年 1 月 30 日
MATLAB Coder is the only product for converting MATLAB to C.
MATLAB Compiler (a different product) does not convert to C: it converts to internal data structures that are interpreted by a MATLAB engine.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!