What is .mex file ?

When ever i simulate a model containing state Chart in it, I generally observe mex files being generated in the current folder director.
What is the use of this .mex file ?

Antworten (1)

Walter Roberson
Walter Roberson am 4 Mär. 2013

0 Stimmen

The .mex file is C code being generated from the Stateflow Chart; the C code is then compiled to binary code and run within MATLAB. This provides for efficient execution of the Chart.

4 Kommentare

Ajay Pherwani
Ajay Pherwani am 4 Mär. 2013
Thanks for you answer , But Why is that only for stateflow chart we observe mex files ? , why isnt for normal simulink block we see mex file ?
Walter Roberson
Walter Roberson am 4 Mär. 2013
I do not know enough about Simulink to answer that.
My understanding had been that there might be some compilation when you use Accelerator mode.
Ajay Pherwani
Ajay Pherwani am 5 Mär. 2013
Bearbeitet: Ajay Pherwani am 5 Mär. 2013
OK , thanks for the answers :)
Sean de Wolski
Sean de Wolski am 5 Mär. 2013
@Walter: or fortran!

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Simulink Coder finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 4 Mär. 2013

Community Treasure Hunt

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

Start Hunting!

Translated by