www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/ScaledAiryFunctionExample.m
%% Scaled Airy Function % Define |x|. %% % Copyright 2015 The MathWorks, Inc. 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')