Speedup using Matlab compiler

One of the statements I hear frequently is that Matlab, being an interpretive language, is somewhat slower than complied languages like Fortran or C++. I am wondering then if using the Matlab compiler, for example to compile a function used iteratively in a script and called maybe a few thousands times, can result in a speedup.
If this is indeed the case, I am also wondering if there is any other reason those programming languages offer speed advantage over Matlab.

Antworten (2)

Sachin Ganjare
Sachin Ganjare am 19 Okt. 2012

0 Stimmen

Refer the article below:
https://www.sharcnet.ca/help/index.php/INTERPRETERS_vs_COMPILERS
Hope it will be useful!!!
Image Analyst
Image Analyst am 19 Okt. 2012

0 Stimmen

I have heard that the compiled MATLAB programs run at the same speed as the compiled ones. Actually longer, since it seems to take a long time for them to launch.

1 Kommentar

Walter Roberson
Walter Roberson am 19 Okt. 2012
I think IA means "same speed as the non-compiled ones". And that would be correct: "compiled" MATLAB is still interpreted.
The MATLAB Coder can be used to generate C code for a limited subset of MATLAB.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu MATLAB Compiler finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 19 Okt. 2012

Community Treasure Hunt

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

Start Hunting!

Translated by