From 632e6ab3b3528594264956e17ddbb709d93771a1 Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Thu, 14 Apr 2011 10:27:17 -0400 Subject: made plot matlab compatible Ignore-this: 1aac48ec1782fa76abfb131c63f52ff2 darcs-hash:20110414142717-067c0-b9c72314486572e24032a3515d68bd9144c7b388 --- solution_visualization.m | 8 ++++++-- 1 file 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') -- cgit v1.2.3