I, the copyright holder of this work, release this work into the public domain. This applies worldwide. In some countries this may not be legally possible; if so: I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.
functionmain()Box_x=3;Scale=0.5;Box_y=Box_x/Scale;Nx=200;Ny=Nx/Scale;wavenumber=10;XX=linspace(-Box_x,Box_x,Nx);YY=linspace(-Box_y,Box_y,Ny);hx=XX(2)-XX(1);hy=YY(2)-YY(1);[X,Y]=meshgrid(XX,YY);I=sqrt(-1);Uinc=exp(I*wavenumber*Y);% plot the initial planewavefigure(1);clf;holdon;axisequal;axisoff;colormapcopper;Tweak=0*Uinc;Tweak(1,1)=-2;Tweak(1,2)=4;imagesc(real(Uinc)+Tweak);% a hack to have the colormap look betteriter=1;saveas(gcf,sprintf('Scattering_frame%d_Nx%d.eps',iter,Nx),'psc2');
This math image could be re-created using vector graphics as a SVG file. This has several advantages; see Commons:Media for cleanup for more information. If a SVG form of this image is available, please upload it and afterwards replace this template with {{vector version available|new image name}}. It is recommended to name the SVG file “Plane wave.svg”—then the template Vector version available (or Vva) does not need the new image name parameter.
Captions
Add a one-line explanation of what this file represents