Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

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

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.

Contact us