Home > atmlab > mie > e3_xscan.m

e3_xscan

PURPOSE ^

Computation and plot of E3 function

SYNOPSIS ^

function result = e3_xscan(nsteps, dx)

DESCRIPTION ^

 Computation and plot of E3 function
 and compared with exp
 C. M�zler, March 2004.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

e3_xscan.m

SOURCE CODE ^

0001 function result = e3_xscan(nsteps, dx)
0002 
0003 % Computation and plot of E3 function
0004 % and compared with exp
0005 % C. M�zler, March 2004.
0006 
0007 nx=(1:nsteps)';
0008 x=(nx-0.5)*dx;
0009 for j = 1:nsteps,
0010     a(j)=e_function(3,x(j));
0011     b(j)=0.5*exp(-2*x(j));
0012 end;
0013 a=a'; b=b';
0014 % plotting the results
0015 plot(x,a,'k.-',x,b,'k-'),
0016 legend('E3(x)',' e^{-2x}/2'),
0017 xlabel('x');
0018 result=[x,a,b];

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005