Scilab Function
Last update : 22/8/2006
unfold_phase - unfolds the phase of a field (or difractive wavefront)
Calling Sequence
-
[pha_out]=unfold_phase(num,pha_in,koeff,rad[,type])
Parameters
-
num
: the dimension of the field
-
pha_in
:input phase matrix of the field. it must be num*num matrix.
-
pha_out
: the output phase matrix
-
koeff
:
the coefficient to multiply the phase, it may be
necessary to translate the phase into dimensional units
-
rad
: the radius of blackening aperture. relative to grid size
-
type
: a identifier to demonstrate the base function
(unf3 or unf4) to use.if default then unf3 used.
Description
unfolds the phase by the function unf3 of LightPipes.
Examples
f1=begin(0.01,1e-6,60);
f2=lens(f1,5);
pha=field_pha(f2);
pha1=unfold_phase(60,pha,1,0.01);
pha2=unfold_phase(60,pha,1,0.01,1);
xbasc();drawlater();
subplot(1,3,1);surf(pha);
subplot(1,3,2);surf(pha1);
subplot(1,3,3);surf(pha2);
drawnow();
Author
Chen jingyuan,
See Also
field_pha
,
file_pha
,