Have you figured out an easy way to publish your MATLAB projects for public consumption?

조회 수: 5 (최근 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
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
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.
  댓글 수: 1
Nathan Lively
Nathan Lively 2021년 7월 9일
Thanks Rik. I forgot about Octave. That's a great tip. My goal is to get friends to test the things I'm building so I can iterate and improve faster, so that might be a way to do it.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by