MATLAB: Sharing code including toolboxes

MATLABtoolbox

Hello,
I'd like to share functions for time-frequency analysis of transient vibratory signals. However, some of these fonctions are using toolboxes (Optimisation, Signal Processing, and Wavelet).
While I understand that only people with these toolboxes will be able to run my functions, I would like to know if there are any issues to share this code on file exchange from a GitHub repository.
Thank you.

Best Answer

Any MATLAB code that you write that calls MATLAB functions is your own property, and you can share your MATLAB code. (Whether you can profit from sharing the code depends upon the kind of license you have.)
You cannot share the toolboxes themselves.
If you have MATLAB Compiler then you can use that to compile code that uses toolboxes, into a stand-alone executable; if you have a commercial license you can then redistribute the executable as you like. (If you have an academic license, you can only distribute the executable for academic or university administrative purposes, not to the general public.) The people who receive these kind of stand-alone executables do not need to have MATLAB installed and do not need to have MATLAB licenses, and there are no royalties.