diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2012-09-25 17:38:04 -0400 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2012-09-25 17:38:04 -0400 |
commit | 9773dd0f1a6f9941a9a3ec5308bd3845d77bcf52 (patch) | |
tree | 4faae2b8a8a1afd80dd3c5d79699fa26b546e3b6 /optics_placer.m | |
parent | 67fa755e143a0529d960d1a6fbd358b2a19f3d7d (diff) | |
download | mode_match-9773dd0f1a6f9941a9a3ec5308bd3845d77bcf52.tar.gz mode_match-9773dd0f1a6f9941a9a3ec5308bd3845d77bcf52.zip |
added function to return fitness of the solution
Diffstat (limited to 'optics_placer.m')
-rw-r--r-- | optics_placer.m | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/optics_placer.m b/optics_placer.m new file mode 100644 index 0000000..ec08ab2 --- /dev/null +++ b/optics_placer.m @@ -0,0 +1,15 @@ +function optics = optics_placer( x )
+ x1=x(1);
+ x2=x(2);
+ x3=x(3);
+
+ lns1.abcd=abcd_lens( 0.075 ) ;
+ lns1.x= x1 ;
+ lns2.abcd=abcd_lens( 0.075 ) ;
+ lns2.x= x2 ;
+ lns3.abcd=abcd_lens( 0.203 ) ;
+ lns3.x= x3 ;
+ optics={lns1,lns2,lns3};
+
+end
+
|