问题
For example:
model = svmTrain(X, y, C, @(x1, x2) gaussianKernel(x1, x2, sigma));
Disclaimer: This is from the Coursera ML class, but it's nearly impossible to search for the @ symbol conventionally.
回答1:
@
prefixes the definition of an anonymous function.
回答2:
Also, @
is used to demark a function handle.
来源:https://stackoverflow.com/questions/25355028/what-is-the-purpose-of-the-symbol-in-front-of-a-variable-in-octave