Filter löschen
Filter löschen

How to convert .m file to .mex file

8 Ansichten (letzte 30 Tage)
DSP Masters
DSP Masters am 25 Apr. 2012
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 Kommentare
vinothkannan K
vinothkannan K am 13 Jun. 2013
mex filename.m
This command will work
Kaustubha Govind
Kaustubha Govind am 13 Jun. 2013
The "mex" command requires C/C++ files as input, and cannot accept .m files.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Kaustubha Govind
Kaustubha Govind am 25 Apr. 2012
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 Kommentare
DSP Masters
DSP Masters am 25 Apr. 2012
Please let me know how to do it manually..
Regards
sowmya..
Kaustubha Govind
Kaustubha Govind am 25 Apr. 2012
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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Write C Functions Callable from MATLAB (MEX Files) finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by