diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2011-04-14 10:27:17 -0400 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2011-04-14 10:27:17 -0400 |
commit | 632e6ab3b3528594264956e17ddbb709d93771a1 (patch) | |
tree | d411923829b1aab0d1023e21a54f7993ac778ff1 | |
parent | e048cbfba56225838e014505a86dec96efe60ad3 (diff) | |
download | mode_match-2.0.tar.gz mode_match-2.0.zip |
made plot matlab compatiblev2.0
Ignore-this: 1aac48ec1782fa76abfb131c63f52ff2
darcs-hash:20110414142717-067c0-b9c72314486572e24032a3515d68bd9144c7b388
-rw-r--r-- | solution_visualization.m | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/solution_visualization.m b/solution_visualization.m index cfce0ab..4662378 100644 --- a/solution_visualization.m +++ b/solution_visualization.m @@ -13,8 +13,12 @@ q_backward=gbeam_propagation(x,q_backward0,xf,optics); [w_backward,r_backward]=q2wr(q_backward, lambda); fprintf('========= Plotting ================\n') -plot (x,w_forward, '1;forward propagation;', x, w_backward, '2;backward propagation;', ... - x,-w_forward, '1;;', x, -w_backward, '2;;') +plot ( ... + x,w_forward, '-r', ... + x,-w_forward, '-r', ... + x, w_backward, '-.b', ... + x, -w_backward, '-.b') +legend({'forward propagation', '', 'backward propagation', ''}) fprintf('======= final check =============\n') fprintf('following are desired values: \n') |