What is .mex file ?

1 view (last 30 days)
Ajay Pherwani
Ajay Pherwani on 4 Mar 2013
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 ?

Answers (1)

Walter Roberson
Walter Roberson on 4 Mar 2013
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.
Sean de Wolski
Sean de Wolski on 5 Mar 2013
@Walter: or fortran!

Sign in to comment.


Find more on MATLAB Compiler in Help Center and File Exchange


Community Treasure Hunt

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

Start Hunting!

Translated by