필터 지우기
필터 지우기

How to convert .c/.MEX file to .m files ?

조회 수: 4 (최근 30일)
Nikhil
Nikhil 2014년 6월 20일
댓글: Nikhil 2014년 6월 23일
Hello all,
I am using modeFrontier software for optimization. I want to use the surrogate/meta model it generates into Matlab. The export options available in modeFrontier are 1. C/Matlab MEX files 2.FORTRAN files 3. Java Files. Can somebody please guide me how can I convert any of these file into .m files which Matlab can read easily. Thank you in advance,
Sincerely, Nikhil

답변 (1개)

James Tursa
James Tursa 2014년 6월 20일
The simplest seems to be the C/MATLAB MEX option, since that suggests you can simply take the exported files, compile them, and then use them directly without any conversion needed.
If you need to convert to m-code for some reson, which languages do you know? I would pick the one you are most familiar with and use that one for the export. Then line-by-line convert it. How large is the code?
  댓글 수: 2
Nikhil
Nikhil 2014년 6월 23일
Hey,
I have attached the .docx file here. It contains c code around 2 and half page long. I am familiar with c language a little bit. Also my aim is I want make changes to this exported output file and test some simulations in Matlab. It would be great if you can guide me for the same. Thanks in advance,
Nikhil
Nikhil
Nikhil 2014년 6월 23일
Sorry. .docx option was not available. So I have attached .pdf file here

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

카테고리

Help CenterFile Exchange에서 Cell Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by