필터 지우기
필터 지우기

How can I convert a matlab code to C?

조회 수: 2 (최근 30일)
Ijeoma Madu
Ijeoma Madu 2013년 1월 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
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
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.
  댓글 수: 1
Ijeoma Madu
Ijeoma Madu 2013년 1월 31일
Thanks. I guess i would get a coder. But how is the compiler used, i would like to see its benefits. I have never used it before

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by