diff options
Diffstat (limited to 'axial/free.m')
-rw-r--r-- | axial/free.m | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/axial/free.m b/axial/free.m new file mode 100644 index 0000000..68f9beb --- /dev/null +++ b/axial/free.m @@ -0,0 +1,22 @@ +%---------------------------------------------------------------
+% Returns the ABCD matrix for free space propagation.
+%
+% SYNTAX: abcd=free(L);
+% <...> indicates optional argument
+%
+% L = distance to propagate.
+% n = index of refraction. Default is 1.
+%
+% abcd = |1 L|
+% |0 1 |
+%
+%---------------------------------------------------------------
+% SYNTAX: abcd=free(L);
+%---------------------------------------------------------------
+
+function abcd=free(L,varargin)
+
+abcd=[
+ 1 L
+ 0 1
+];
|