File:Phase-shift illustration.png

Summary

Description Illustration of en:phase-shift masks
Date (UTC)
Source Own work (Original text: self-made with MATLAB)
Author Oleg Alexandrov

Licensing

Public domain 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.
Category:Self-published work#Phase-shift%20illustration.pngCategory:PD-self#Phase-shift%20illustration.png

Source code (MATLAB)

% A very simple code to illustrate the phase-shift in a plane wave
% Things become much more complex if the effects of diffraction are
% included.

Lx=1;
Ly=0.4;

Mx = Lx/2;
Wy = Ly/2;

M=400;
N = floor(M*Ly/Lx);

[X, Y]=meshgrid(linspace(0, Lx, M), linspace(0, Ly, N));


k = 100; % the wavenumber
Z = real(exp(i*k*X));

% The field Z with a phase-shifted part
S = find ( X > Mx & Y < Ly/2 + Wy/2 & Y > Ly/2 - Wy/2);
W = Z;
W(S) = W(S)*exp(i*pi);


figure(1); clf; hold on; axis equal; axis off;
surf(X, Y, real(Z));

downshift = 1.5*Ly;
surf(X, Y-downshift, real(W));

view(0, 90);
shading flat;
colormap copper;
axis([0, Lx, -downshift, Ly]);

saveas(gcf, 'Phase-shift_illustration.eps', 'psc2');
This simple math image could be re-created using vector graphics as an SVG file. This has several advantages; see Commons:Media for cleanup for more information. If an 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 “Phase-shift illustration.svg”—then the template Vector version available (or Vva) does not need the new image name parameter.
Category:Simple math images that should use vector graphics#%20Phase-shift%20illustration.pngCategory:PNG that should use vector graphics Category:Files by User:Oleg Alexandrov from en.wikipedia Category:Images with Matlab source code Category:Phase shift Category:Photolithography (microfabrication)
Category:Files by User:Oleg Alexandrov from en.wikipedia Category:Images with Matlab source code Category:PD-self Category:PNG that should use vector graphics Category:Pages using deprecated source tags Category:Phase shift Category:Photolithography (microfabrication) Category:Self-published work Category:Simple math images that should use vector graphics