aboutsummaryrefslogtreecommitdiff
path: root/gbeam_propagation.m
diff options
context:
space:
mode:
authorMatt Argao <mcargao@email.wm.edu>2013-03-02 10:14:05 -0500
committerMatt Argao <mcargao@email.wm.edu>2013-03-02 10:14:05 -0500
commitc181a0d3181a7f5a24e9fdc712f2cdab38a928cb (patch)
treea1e8123f47b0e954c317a0012b73935b32f340f8 /gbeam_propagation.m
parent563330e918440fd6ef34ffac88706c0e19a0ba08 (diff)
downloadmode_match-c181a0d3181a7f5a24e9fdc712f2cdab38a928cb.tar.gz
mode_match-c181a0d3181a7f5a24e9fdc712f2cdab38a928cb.zip
Fixed lens bug and added more accurate representation of lenses.
Diffstat (limited to 'gbeam_propagation.m')
-rw-r--r--gbeam_propagation.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/gbeam_propagation.m b/gbeam_propagation.m
index eeb6a3d..585048d 100644
--- a/gbeam_propagation.m
+++ b/gbeam_propagation.m
@@ -1,4 +1,4 @@
-function [q, q_lens] = gbeam_propagation(x_pos, q_in, x_in, optics_elements)
+function [q] = gbeam_propagation(x_pos, q_in, x_in, optics_elements)
% calculate the 'q' parameter of the Gaussian beam propagating through optical
% 'optics_elements' array along 'x' axis at points 'x_pos'
% takes the gaussian beam with initial q_in parameter at x_in
@@ -8,7 +8,7 @@ function [q, q_lens] = gbeam_propagation(x_pos, q_in, x_in, optics_elements)
if any(x_pos >= x_in)
% Forward propagation to the right of x_in
- [q(x_pos >= x_in), q_lens] = gbeam_propagation_froward_only(x_pos(x_pos>=x_in), q_in, x_in, optics_elements);
+ [q(x_pos >= x_in)] = gbeam_propagation_froward_only(x_pos(x_pos>=x_in), q_in, x_in, optics_elements);
end
if any(x_pos < x_in)