Is there any tool or compiler to convert '.m' file into '.c' ?

조회 수: 2 (최근 30일)
Dhaval Gondaliya
Dhaval Gondaliya 2012년 11월 25일
hello friends, I am doing a project on speech but i want to convert '.m' file to '.c' so any one know how to do please help me.

채택된 답변

Walter Roberson
Walter Roberson 2012년 11월 25일
MATLAB Coder is the product. There are a fair number of parts of MATLAB that cannot be converted to C, however.
Note: MATLAB Coder is not available at all for Student Version licenses of MATLAB. For Academic and Commercial license versions of MATLAB, MATLAB Coder is an optional (and relatively expensive) toolbox.
There is also MATLAB Compiler, which is a different product. MATLAB Compiler is also not available at all for Student Version. MATLAB Compiler is for converting .m into executables and libraries. The resulting executable is effectively a MATLAB engine in itself. Many parts of MATLAB can be converted via the MATLAB Compiler, but not everything. The performance of .m processed through MATLAB Compiler is almost exactly the same as running the files through MATLAB. This is not something you would use for performance improvements: it is something you use for bundling .m projects into one piece.
  댓글 수: 2
Elisabeth
Elisabeth 2013년 1월 30일
Hi Walter, can the Matlab compiler generate standalone C codes?
Arnab De
Arnab De 2013년 2월 2일
No, MATLAB Compiler cannot generate standalone C code. You need MATLAB Coder to generate standalone C code from MATLAB code.

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

추가 답변 (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