Technical discussion about Matlab and issues related to Digital Signal Processing.
|
Hi! I would like to know how to create mex-files from C code. I have tried to compile one using MinGW but is unsuccessful in doing so. Can someone help me with this, or suggest a simpler method of compiling c code into mex-file? Can somebody suggest a site illustrating this kind of file generation? Thanks! |
|
|
|
Try the following link: Is there a Tutorial for Creating MEX-files with Emphasis on C MEX-files? http://www.mathworks.com/support/tech-notes/1600/1615.shtml?BB=1 Jeff -----Original Message----- From: Joel Ilao [mailto:] Sent: Wednesday, November 28, 2001 1:25 PM To: Subject: [matlab] Mex-file generation from C code Hi! I would like to know how to create mex-files from C code. I have tried to compile one using MinGW but is unsuccessful in doing so. Can someone help me with this, or suggest a simpler method of compiling c code into mex-file? Can somebody suggest a site illustrating this kind of file generation? Thanks! _____________________________________ /groups.php3 |
|
Hi, You have to do it from within Matlab. You need to have a C compiler off a kind supported by Matlab (Visual, Borland, ...) and you have to define the connection in some .bat files at the <matlabroot>\bin directory before you can use the Matlab mex command. Joe BSTEX - Equation viewer for Matlab http://www.geocities.com/bstex2001 --- Joel Ilao <> wrote: > Hi! > > I would like to know how to create mex-files from C > code. I have tried to compile one using MinGW but > is > unsuccessful in doing so. Can someone help me with > this, or suggest a simpler method of compiling c > code > into mex-file? Can somebody suggest a site > illustrating this kind of file generation? > > Thanks! __________________________________________________ |