Have you figured out an easy way to publish your MATLAB projects for public consumption?
조회 수: 4 (최근 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개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!