From c181a0d3181a7f5a24e9fdc712f2cdab38a928cb Mon Sep 17 00:00:00 2001 From: Matt Argao Date: Sat, 2 Mar 2013 10:14:05 -0500 Subject: Fixed lens bug and added more accurate representation of lenses. --- pick_visualization.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pick_visualization.m') diff --git a/pick_visualization.m b/pick_visualization.m index 58140c1..26bd2a6 100644 --- a/pick_visualization.m +++ b/pick_visualization.m @@ -1,4 +1,4 @@ -function [ ] = pick_visualization( fitness_energy, possible_lens_placement_uniq, possible_lens_placement, possible_lens_set, index, n_visualizations, q0, qf, Ltot, lambda ) +function [ ] = pick_visualization( fitness_energy, possible_lens_placement_uniq, possible_lens_placement, possible_lens_set, index, n_visualizations, q0, qf, Ltot, lambda, lens_width, display_prop ) %Picks n_visualizations of sets of data and graphs each x0 = 0; @@ -6,7 +6,7 @@ n_possible_lens_placement = min(n_visualizations,size(possible_lens_placement_un for n_graph = 1:n_possible_lens_placement figure(n_graph) - [w_final_trial, r_final_trial] = solution_visualization(q0, x0, qf, Ltot, optics_placer(possible_lens_placement(index(n_graph),:), possible_lens_set(index(n_graph),:)), lambda); + [w_final_trial, r_final_trial] = solution_visualization(q0, x0, qf, Ltot, optics_placer(possible_lens_placement(index(n_graph),:), possible_lens_set(index(n_graph),:)), lambda, lens_width, display_prop); str1=sprintf('\n (red) f_1 = %0.4f, x_1 = %0.4f\n',possible_lens_set(index(n_graph),1),possible_lens_placement(index(n_graph),1)); str2=sprintf(' (green) f_2 = %0.4f, x_2 = %0.4f\n',possible_lens_set(index(n_graph),2),possible_lens_placement(index(n_graph),2)); -- cgit v1.2.3