If you have two functions with the same name, Matlab will name one that is closer to your head PATH. Thus, it may happen that if you call svmtrainfrom different directories, you will end up calling different functions, even if only the change you make changes your current working directory.
To find out which function actually uses matlab, call the function whichfrom the command line:
>> which svmtrain
source
share