diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-05-13 15:35:26 -0400 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-05-13 15:58:56 -0400 |
commit | d1b62466d81b164656588ac1c55acff15ee9ea43 (patch) | |
tree | cce78f90b0768361c4a268b946848842e1e47456 /axial/mirr.m | |
download | optics_toolkit-d1b62466d81b164656588ac1c55acff15ee9ea43.tar.gz optics_toolkit-d1b62466d81b164656588ac1c55acff15ee9ea43.zip |
initial
The optics_toolkit code taken from
http://mercury.pr.erau.edu/~greta9a1/downloads/index.html
the older version is also available at mathwork web site
http://www.mathworks.com/matlabcentral/fileexchange/15459-basic-paraxial-optics-toolkit
Diffstat (limited to 'axial/mirr.m')
-rw-r--r-- | axial/mirr.m | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/axial/mirr.m b/axial/mirr.m new file mode 100644 index 0000000..35d7a92 --- /dev/null +++ b/axial/mirr.m @@ -0,0 +1,21 @@ +%----------------------------------------------------------------
+% Returns the ABCD matrix for reflection from a spherical mirror.
+%
+% SYNTAX: abcd=mirr(R);
+% <...> indicates optional argument
+%
+% R = mirror radius of curvature
+%
+% abcd = | 1 0 |
+% |-2/R 1 |
+%
+%----------------------------------------------------------------
+% SYNTAX: abcd=mirr(R);
+%----------------------------------------------------------------
+
+function abcd=mirr(R)
+
+abcd=[
+ 1 0
+ -2/R 1
+];
\ No newline at end of file |