Have you figured out an easy way to publish your MATLAB projects for public consumption?
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
Walter Roberson
2021-7-8
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.
采纳的回答
Rik
2021-7-8
(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.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!