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.
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.
@
prefixes the definition of an anonymous function.
Also, @
is used to demark a function handle.