I have written a Matlab function that I wish to use multiple times. To do so, at the moment I am copying the function into the appropriate directory prior to use.
The problem with this method is that its too easy to get lost in different versions of the function. Basically, I'm in a situation where I can't remember which version contains which modifications.
So my question is, how can I have a single version of the function that I can use from any directory?