What are the rules/etiquette to cite MATLAB File-exchange submissions on paper publications?
There are different scenarios where I am curious what is best:
- FEX submission is clearly code from a paper written by the same person.
- Code is from a paper, but the author of the code is not the same author than the paper.
- Code is a nice tool, but has no available citation. E.g.
inpaint_nans, nice tool to fill "missing" data.
- Code that is a nice tool, someone coded it, but its little effort to rewrite as it's not a complex tool. Still, someone write it and,
- Code that is a nice tool, takes little effort to rewrite, but its code referencing more than one paper. E.g.
3D Shepp-Logan Phantom, references 2 papers, and its a short function.
MATLAB uses the BSD license in FEX, meaning all software can be used and redistributed as long as the copyright is maintained an disclaimer kept.
This means that legally, one can just copy-paste the code and use it without any worry, as long as the license file is kept. But law aside, how should one act in the above mentioned cases?