No products are associated with this question.
Very often the documentation for the function will mention the algorithm, but in this case it doesn't seem to. You could try
>> edit ellipticK
and see if there are references in the header of the function. (I don't have that Toolbox, so I can't check.)