%% Scaled Airy Function
% Define x.

x = -10:0.01:1;

% Calculate the scaled and unscaled Airy function.
%

scaledAi = airy(0,x,1);
noscaleAi =  airy(0,x,0);

% Plot the real part of each result.
%

rscaled = real(scaledAi);
rnoscale = real(noscaleAi);
figure
plot(x,rscaled,'-b',x,rnoscale,'-r')
axis([-10 1 -0.60 0.60])
xlabel('x')
legend('scaled','not scaled','Location','SouthEast')

% Copyright 2015 The MathWorks, Inc.