aboutsummaryrefslogtreecommitdiff
path: root/gbeam_propagation_froward_only.m
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2011-04-14 10:12:31 -0400
committerEugeniy Mikhailov <evgmik@gmail.com>2011-04-14 10:12:31 -0400
commitb4edab122e75928d7dcacf45fa927f878f0bf791 (patch)
tree1f4c1e450700f219632c92e5b135cb4b116acd0b /gbeam_propagation_froward_only.m
parenta46878a0d59eee4c98c9be4365bf4d3f517f2229 (diff)
downloadmode_match-b4edab122e75928d7dcacf45fa927f878f0bf791.tar.gz
mode_match-b4edab122e75928d7dcacf45fa927f878f0bf791.zip
endif, endfor, endfunction -> end (for matlab compatibility)
Ignore-this: ddb1f3a61e081f0f73eaf307c8173d8e darcs-hash:20110414141231-067c0-639aea74867aecbd2b047aa51213897a590729a1
Diffstat (limited to 'gbeam_propagation_froward_only.m')
-rw-r--r--gbeam_propagation_froward_only.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/gbeam_propagation_froward_only.m b/gbeam_propagation_froward_only.m
index 5c7ea3a..db8877f 100644
--- a/gbeam_propagation_froward_only.m
+++ b/gbeam_propagation_froward_only.m
@@ -31,15 +31,15 @@ function q = gbeam_propagation_froward_only(x_pos, q_in, x_in, optics_elements)
q_last_calc=q_after_abcd(q_last_calc,abcd);
q_last_calc=q_after_abcd(q_last_calc,el.abcd);
x_last_calc=el.x;
- endif
- endfor
+ end
+ end
if (x_pos_i > x_last_calc);
abcd=abcd_free_space(x_pos_i-x_last_calc);
q_last_calc=q_after_abcd(q_last_calc,abcd);
x_last_calc=x_pos_i;
- endif
+ end
q(i)=q_last_calc;
- endfor
+ end
end
%!test