Node:Legal Issues, Next:, Previous:Example Project, Up:Top



Legal Issues

You have to obey some rules when writing free software for use with Matlab. First you have to check if your software license of choice permits the user to run your program together with non-free software, here Matlab. In the special case of MEX-files, you have to check if the software license permits dynamic loading of free software into non-free software.

For the GNU General Public License, you can solve the license conflict by adding a special exception at the end of the copyright notice. For example,

As a special exception, name-of-the-author gives permission to link
the code of this program with MATLAB from The Mathworks, Inc. (or
with modified versions of MATLAB that use the same license as
MATLAB), and distribute linked combinations including the two.
You must obey the GNU General Public License in all respects for
all of the code used other than with MATLAB.  If you modify this
file, you may extend this exception to your version of the file,
but you are not obligated to do so.  If you do not wish to do so,
delete this exception statement from your version.

where name-of-the-author should be the name of the copyright holder.