Does the mex files generated on my PC work on another PC?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Qingshan
le 9 Juin 2016
Commenté : Walter Roberson
le 9 Juin 2016
I developed a software with Matlab. In order to speed up the software executions, I would like to buy the Matlab Coder toolbox to generate mex files for the software. Because the software is going to be used by other students and scientists, I wonder whether the mex files generated on my PC is going to work on other PCs. Many thanks.
0 commentaires
Réponse acceptée
Walter Roberson
le 9 Juin 2016
Yes, provided that they are running with the same bits (32 vs 64) as you compiled for.
Note however that there has never been any promises about backwards compatibility for .mex* files, so the binary files you generate might stop working at some future release.
If you use MATLAB Coder to generate C code then you could distribute the C code, which the user could then compile; that should be a bit more robust against future changes to MATLAB.
0 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur MATLAB Coder dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!