4

Since Matlab itself is not open source (commercial software and Matlab language can only be used within the Matlab environment), is it OK to put my Matlab code on github under open source license, e.g., MIT or GPL?

2 Answers 2

3

Yes it is fine to release your Matlab code under a FLOSS license, althought not GPL but you can use LGPL, Apache 2.0 or BSD licenses. Choose depending on your purposes for the code.

The Free Software Foundation advises to use LGPL for libraries which will be used along with nonfree software or Apache 2.0 if for some reason you don't require strong copyleft protection on your code or if it is a very small program. Read FSF's license recomendations

Mathworks for example requires BSD licensing for code to be released in their File Exchange. Read Mathworks' TOS

3

https://www.mathworks.com/matlabcentral/answers/466878-putting-a-code-open-source

This advice appears to conflict with an answer on MATLAB's help site, which says GPL is acceptable.

1
  • 1
    Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Jun 3, 2023 at 9:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.