www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/PlotTheCompleteEllipticIntegralsOfFirstAndSecondKindExample.m

    %% Plot Complete Elliptic Integrals of First and Second Kind
% Plot the complete elliptic integrals of the first and second kind for the
% allowed range of |M|.

% Copyright 2015 The MathWorks, Inc.

M = 0:0.01:1;
[K,E] = ellipke(M);
plot(M,K,M,E)
grid on
xlabel('M')
title('Complete Elliptic Integrals of First and Second Kind')
legend('First kind','Second kind')