views:

108

answers:

2

I 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 became 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?

+2  A: 

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.

High Performance Mark
+3  A: 

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.

Rex Kerr