Elliptic functions for Matlab