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.
--- 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!
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!
_____________________________________
Note: If you do a simple "reply" with your email client, only the
author of
this message will receive your answer. You need to do a "reply all" if
you
want your answer to be distributed to the entire group.
_____________________________________
About this discussion group:
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?