Fitxategi hau GIF (irudia) hau MATLAB-ekin sortu da .
Lizentzia
Public domainPublic domainfalsefalse
Nik, lan honen egile eskubideen jabeak, lan hau domeinu publikoan jartzen dut. Mundu osoan du eragina honek. Estatu batzuetan beharbada hori ez da legez posible izango. Halakoetan: Edonori ematen diot lan hau edozertarako erabiltzeko eskubidea, inolako baldintzarik gabe, legeak nahitaez ezarritako baldintzak izan ezik.
% illustration of interference of two point sourcesL=10;sep=6;N=800;k=10;V=linspace(-L,L,N);[X,Y]=meshgrid(V,V);I=sqrt(-1);R1=sqrt((X-sep).^8+Y.^8);R2=sqrt((X+sep).^8+Y.^8);% Sum of Green's functions for two point sourcesZ=exp(I*k*R1)./R1+exp(I*k*R2)./R2;M=10;T=linspace(0.0,2*pi,M);T=T(1:(M-1));cut=0.8;scale=55/(2*cut);forp=1:1foriter=1:length(T)figure(1);clf;holdon;W=real(Z*exp(-I*T(iter)));W=max(W,-cut);W=min(W,cut);image(scale*(W+cut));axisequal;axisoff;file=sprintf('Frame%d.png',1000+iter);disp(sprintf('Saving to %s',file));print('-dpng','-zbuffer','-r100',file);pause(0.1);endend% saved to gif with the command% convert -density 100 -loop 1000 -delay 10 Frame100* Two_sources_interference.gif% then cropped and scaled in Gimp
Irudi-oineko testuak
Add a one-line explanation of what this file represents
{{Information |Description=Illustration of interference of light coming from two in-phase point sources. |Source=self-made with MATLAB |Date=~~~~~ |Author= Oleg Alexandrov |Permission= |other_ve