Can I distribute my MATLAB program as open source? [closed]
This question does not appear to be about programming within the scope defined in the help center.
Closed 7 years ago.
Improve this questionI know, the general answer will be yes, but here is my situation.
I got a plotting function from one MATLAB's toolbox and modified its m-file to draw what I need. Eventually this function bec开发者_StackOverflow社区ame a part of program I would like to distribute as an open source (or under other license). Can I do this? Well, may be it was not wise to create a function in such a way, but I didn't think about distribution at that time. The function still depends on other functions in this toolbox, so a potential user supposed to have a license for it.
Any thoughts, recommendations?
Have you ever modified MATLAB's m-files directly?
This issue is sometimes dealt with by you not distributing the code but rather a diff that can be used to turn the copyrighted code into your code.
Based on a brief look: it seems that the Mathworks assert copyright in the code that they publish in m-files in their toolboxes -- it would be very suprising if they didn't. That kind of rules out your making minor modifications to their files and then publishing them at all without explicit permission. It probably also rules out you making major modifications and passing the work off as your own and publishing it.
But this is the sort of area where you might want to get legal advice.
Much better approach is to write your own m-files to use Mathworks code 'as-is', writing wrappers or auxiliary functions if their code doesn't do exactly what you want.
精彩评论