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,
time==gold
! - 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?
plotcube
from FEX. This function is ridiculously simple and "copyable". If I would need to write a paper, I am pretty sure I wouldn't reference that FEX, nor the reviewers would agree in a reference to that. Thus, my option, would be probably to write my own (or avoid a reverence). But this is a pity, because someone made the effort to write a function, it doesn't matter its simplicity.