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

    %% Airy Function of Complex-Valued |x|
% Compute the Airy function at a slice through the complex plane at $x +
% i$.
%%
% Take a slice through the complex plane.
%%

% Copyright 2015 The MathWorks, Inc.

x = -4:0.1:4;
z = x+1i;
%%
% Calculate _Ai(z)_.
%%
w = airy(z);
%%
% Plot the real part of the result.
%%
figure
plot(x, real(w))
axis([-4 4 -1.5 1])
xlabel('real(z)')