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.
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