what is the purpose of the @ symbol in front of a variable in octave?

后端 未结 2 1873
半阙折子戏
半阙折子戏 2021-02-20 07:02

For example:

model = svmTrain(X, y, C, @(x1, x2) gaussianKernel(x1, x2, sigma)); 

Disclaimer: This is from the Coursera ML class, but it\'s nea

相关标签:
2条回答
  • 2021-02-20 07:19

    Also, @ is used to demark a function handle.

    0 讨论(0)
  • 2021-02-20 07:21

    @ prefixes the definition of an anonymous function.

    0 讨论(0)
提交回复
热议问题