I am using libsvm in matlab and I am trying to call svmtrain
. However I know that Matlab also has a built-in function called svmtrain
. I believe they take the same parameters in different order. How do I know which function matlab is calling? I want to call the svmtrain
function from libsvm. How can I ensure this will happen?
If you have two functions with the same name, Matlab will call the one that is located closer to the head of your PATH
. So, it might be the case that if you call svmtrain
from different directories you'll end up calling different functions even if the only change you have made is changing your current working directory.
To know which function matlab is actually using, call the function which
from the command line:
>> which svmtrain
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With