summaryrefslogtreecommitdiff
path: root/gbeam_propagation_froward_only.m
diff options
context:
space:
mode:
Diffstat (limited to 'gbeam_propagation_froward_only.m')
-rw-r--r--gbeam_propagation_froward_only.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/gbeam_propagation_froward_only.m b/gbeam_propagation_froward_only.m
index 8a14cf5..2cdc1d8 100644
--- a/gbeam_propagation_froward_only.m
+++ b/gbeam_propagation_froward_only.m
@@ -1,4 +1,4 @@
-function [q, q_lens] = gbeam_propagation_froward_only(x_pos, q_in, x_in, optics_elements)
+function [q] = gbeam_propagation_froward_only(x_pos, q_in, x_in, optics_elements)
% calculate the 'q' parameter of the Gaussian beam propagating through optical
% 'optics_elements' only in the positive direction along 'x' axis at points 'x_pos'
% takes the gaussian beam with initial q_in parameter at x_in
@@ -39,7 +39,6 @@ function [q, q_lens] = gbeam_propagation_froward_only(x_pos, q_in, x_in, optics
end
%propagate beam up to the lens
q_at_lens = q_after_free_space(q_last_calc,elx - x_last_calc);
- q_lens(k) = q_at_lens;
%Applying lens transformation
q_last_calc=q_after_abcd(q_at_lens,el.abcd);
x_last_calc = elx;