How to convert .m file to .mex file
5 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
Kaustubha Govind
2013 年 6 月 13 日
The "mex" command requires C/C++ files as input, and cannot accept .m files.
回答 (1 件)
Kaustubha Govind
2012 年 4 月 25 日
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 件のコメント
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.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!