필터 지우기
필터 지우기

Matlab coder: Generate C file from a m file with an internal mex file

조회 수: 1 (최근 30일)
yoni klein
yoni klein 2012년 7월 17일
Hi,
I have a function that runs in matlab with a m file. that file calss several function. one of them is a Mex file.
My questions are:
  1. Can i generate a C file using matalb coder from a function that has an internal functions(for start- all m files)?
  2. Can i generate a C file from a Mex file(with bo original code)?
  3. Can i generate a C file from a function that contains several function that one of the is a mex file?
I will be glad if someone can add a reference where to read about if it is possible.
Thanks.
Yoni

답변 (1개)

Ryan G
Ryan G 2012년 7월 17일
2) A mex file is a MATLAB executable. Once code is compiled you cannot go back from the executable alone. Hence you cannot generate code from a mex file.
3) I don't believe you can generate code for a mex-function call. You can generate a mex-file with MATLAB coder but the more generic file types, exe and lib for example, would not be able to handle a mex-function call since MEX is dependent on MATLAB.

카테고리

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