diff options
-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') |