How to convert .m file to .mex file

Hi all, I need to convert .m file to .mex file. I am using MATLAB R2008a, Please help me to do this conversion.
Regards,
Sowmya

댓글 수: 2

vinothkannan K
vinothkannan K 2013년 6월 13일
mex filename.m
This command will work
Kaustubha Govind
Kaustubha Govind 2013년 6월 13일
The "mex" command requires C/C++ files as input, and cannot accept .m files.

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

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2012년 4월 25일

1 개 추천

You will need to do that manually, unless you use the MATLAB Coder product which was introduced in R2011a. Note that if using MATLAB Coder, you can only use the MATLAB language subset supported for code generation.

댓글 수: 2

DSP Masters
DSP Masters 2012년 4월 25일
Please let me know how to do it manually..
Regards
sowmya..
Kaustubha Govind
Kaustubha Govind 2012년 4월 25일
Sowmya: That is a fairly large project and is beyond the scope of this forum. Please follow the MEX-file guide (http://www.mathworks.com/support/tech-notes/1600/1605.html) and start with some examples to familiarize yourself with the MEX API. You will also need to be familiar with C/C++. Post back if you run into specific issues.

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

카테고리

도움말 센터File Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

질문:

2012년 4월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by