There is no function named kappa in MATLAB, or in any toolbox that I can find.
However, there are functions by that name in the file exchange. The first few:
https://uk.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/15365/versions/4/previews/kappa.m/index.html
There is absolutely no way that we can know which of those, or the many other tools it might be.
Or you might just have been given code that assumes a variable by that name. How can we know?
Contact the source of the code, and ask them.