Have you figured out an easy way to publish your MATLAB projects for public consumption?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I've come up with several MATLAB scripts that I'd love to be able to make available for public use. As far as I can tell, MATLAB is not built for this. There's no way for me to just embed the code into a web page or package it into a standalone app. (yes, I'm aware of the Compiler, but it's not available for individuals)
It seems like the intention is research and development. Then, if you want to share it publicly with someone who doesn't have MATLAB, it has to be translated to C++ or Python or JS or something similar.
Am I understanding things correctly?
4 commentaires
Walter Roberson
le 8 Juil 2021
Historically, Mathworks has encounted problems where purely commercial enterprises has purchased the lower-cost licenses and deliberately violated or ignored the license conditions.
I believe there is concern that people would use Student or Home licenses to generate executables for commercial purposes.
I do not have any information about how highly that particular concern ranks against other concerns.
Réponse acceptée
Rik
le 8 Juil 2021
(this is not a drop-in solution)
You could bundle your m-file with a copy of GNU Octave.
The main upside is that it will be free (under many circumstance, you should check the licenses of both Matlab and Octave).
The main downsides are that it will take developer time to confirm everything works as expected (and create work-arounds for when it doesn't), the debugging tools are much worse, the performance is much worse, and the support is much more hit-and-miss.
I personally make sure my code will run on very old Matlab releases, as well as Octave. I would estimate implementing the workarounds takes about the same time, mainly due to the debugging tools. (very old Matlab in this case being Matlab R13 (v6.5), which was released June 2002)
For Linux it seems to be possible to have the OS treat your functions as a stand-alone application, but for Windows this doesn't seem to be possible (yet?). MacOS is probably even further away.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!