aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--example_beam_trace.m7
1 files changed, 4 insertions, 3 deletions
diff --git a/example_beam_trace.m b/example_beam_trace.m
index 6df00e7..0385cbf 100644
--- a/example_beam_trace.m
+++ b/example_beam_trace.m
@@ -12,21 +12,22 @@ beam1.polarization = 2; % 1 for s and 2 for p
beams={beam1,beam2};
+n_rutile=[2.4885, 2.7532]; % n_s and n_p
face1.vertex1=[-1,0];
face1.vertex2=[1,0];
face1.n_right = [1, 1];
-face1.n_left= [2.4885, 2.7532];
+face1.n_left= n_rutile;
face2.vertex1=[1,0];
face2.vertex2=[0,1];
face2.n_right = [1, 1];
-face2.n_left= [2.4885, 2.7532];
+face2.n_left= n_rutile;
face3.vertex1=[0,1];
face3.vertex2=[-1,0];
face3.n_right = [1, 1];
-face3.n_left= [2.4885, 2.7532];
+face3.n_left= n_rutile;
faces={face1,face2,face3};