Compiling with Matlab instead of interpreting
Mostrar comentarios más antiguos
Hi,
I'm looking to compare different coding software (Matlab, Python and Labview) to know which one would be the most adept for my need. I wanted to write the same heavy calculations in the three language and see which one runs faster. I would be making a custom function and calling it a hundred times and see how long it took to execute.
To do so, I wanted to optimize my code the best I can. To my understanding, Matlab is an interpreter. He will go line by line traducting the code for the computer to execute it. I wanted to know if it was possible to compile the code in advance in a way to make it execute as fast as a compiler.
Thank you
RMT
Respuesta aceptada
Más respuestas (2)
Matt J
el 12 de Nov. de 2018
1 voto
2 comentarios
Raphaël
el 12 de Nov. de 2018
Here are a few relevant links.
But I agree with Bruno. It's going to be hard to beat ordinary Matlab at FFT and convolution operations, especially if you do those computations on the GPU using the Parallel Computing Toolbox.
Image Analyst
el 12 de Nov. de 2018
0 votos
1 comentario
Bruno Luong
el 12 de Nov. de 2018
MATLAB compiler actually doesn't compile anything. It just encrypt/package the source code to run under the runtime.
In this perspective, the speed gain is 0.
Categorías
Más información sobre Call Python from MATLAB en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!