summaryrefslogtreecommitdiff
path: root/abcd_lens.m
diff options
context:
space:
mode:
Diffstat (limited to 'abcd_lens.m')
-rw-r--r--abcd_lens.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/abcd_lens.m b/abcd_lens.m
new file mode 100644
index 0000000..55c23bd
--- /dev/null
+++ b/abcd_lens.m
@@ -0,0 +1,6 @@
+function lens_abcd =abcd_lens(focal_distance)
+% abcd matrix of the lens with given focal length
+ lens_abcd = [1, 0; -1/focal_distance, 1];
+endfunction
+
+