It was impossible in 2007, but is there now a way to check which Matlab versions a function exists for?
For example, in Wolfram Mathematica, the documentation indicates in which version the function was released: e.g. the GapPenalty() documentation mentions "New in 7".
Have a look to the FEX function when.