Thread Subject: What is a mex file and how it's generated?

Subject: What is a mex file and how it's generated?

From: Sprinceana

Date: 19 Apr, 2009 14:15:04

Message: 1 of 5

I'm a newbie and I dont' understand the term of mex file(matlab executable).

Can anyone tell me what is a mex file and how it's generated(with a concrete example please):

not using mcc command this I know.


A short explanation and concrete should advise me about this term!

I wait your response!

Subject: What is a mex file and how it's generated?

From: Sprinceana

Date: 19 Apr, 2009 19:12:01

Message: 2 of 5

"Sprinceana " <mihaispr@yahoo.com> wrote in message <gsfbl8$8af$1@fred.mathworks.com>...
> I'm a newbie and I dont' understand the term of mex file(matlab executable).
>
> Can anyone tell me what is a mex file and how it's generated(with a concrete example please):
>
> not using mcc command this I know.
>
>
> A short explanation and concrete should advise me about this term!
>
> I wait your response!

Any ideas ?

Subject: What is a mex file and how it's generated?

From: Jiro Doke

Date: 19 Apr, 2009 19:23:01

Message: 3 of 5

"Sprinceana " <mihaispr@yahoo.com> wrote in message <gsfbl8$8af$1@fred.mathworks.com>...
> I'm a newbie and I dont' understand the term of mex file(matlab executable).
>
> Can anyone tell me what is a mex file and how it's generated(with a concrete example please):
>
> not using mcc command this I know.
>
>
> A short explanation and concrete should advise me about this term!
>
> I wait your response!

Well, I think the documentation is the best place to get an accurate explanation:

http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/f29502.html

They're basically used to run C and Fortran code in MATLAB. Here are the examples for C and Fortran (from the documentation)

http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/f7667.html
http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/f7667dfi1.html

jiro

Subject: What is a mex file and how it's generated?

From: Sprinceana

Date: 19 Apr, 2009 19:27:01

Message: 4 of 5

"Jiro Doke" <jiro.doke@mathworks.com> wrote in message <gsftml$iih$1@fred.mathworks.com>...
> "Sprinceana " <mihaispr@yahoo.com> wrote in message <gsfbl8$8af$1@fred.mathworks.com>...
> > I'm a newbie and I dont' understand the term of mex file(matlab executable).
> >
> > Can anyone tell me what is a mex file and how it's generated(with a concrete example please):
> >
> > not using mcc command this I know.
> >
> >
> > A short explanation and concrete should advise me about this term!
> >
> > I wait your response!
>
> Well, I think the documentation is the best place to get an accurate explanation:
>
> http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/f29502.html
>
> They're basically used to run C and Fortran code in MATLAB. Here are the examples for C and Fortran (from the documentation)
>
> http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/f7667.html
> http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/f7667dfi1.html
>
> jiro

Thank you Jiro for your well explanation and links provided!

Best regards,

Michael

Subject: What is a mex file and how it's generated?

From: Ricardo

Date: 24 Apr, 2009 23:35:03

Message: 5 of 5

"Sprinceana " <mihaispr@yahoo.com> wrote in message <gsftu5$3ql$1@fred.mathworks.com>...
> "Jiro Doke" <jiro.doke@mathworks.com> wrote in message <gsftml$iih$1@fred.mathworks.com>...
> > "Sprinceana " <mihaispr@yahoo.com> wrote in message <gsfbl8$8af$1@fred.mathworks.com>...
> > > I'm a newbie and I dont' understand the term of mex file(matlab executable).
> > >
> > > Can anyone tell me what is a mex file and how it's generated(with a concrete example please):
> > >
> > > not using mcc command this I know.
> > >
> > >
> > > A short explanation and concrete should advise me about this term!
> > >
> > > I wait your response!
> >
> > Well, I think the documentation is the best place to get an accurate explanation:
> >
> > http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/f29502.html
> >
> > They're basically used to run C and Fortran code in MATLAB. Here are the examples for C and Fortran (from the documentation)
> >
> > http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/f7667.html
> > http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/f7667dfi1.html
> >
> > jiro
>
> Thank you Jiro for your well explanation and links provided!
>
> Best regards,
>
> Michael

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
mex Jiro Doke 19 Apr, 2009 15:25:04
mex file genera... Sprinceana 19 Apr, 2009 10:20:03
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com