aboutsummaryrefslogtreecommitdiff
path: root/pick_visualization.m
diff options
context:
space:
mode:
authorMatt Argao <mcargao@email.wm.edu>2012-11-13 16:50:40 -0500
committerMatt Argao <mcargao@email.wm.edu>2012-11-13 16:50:40 -0500
commit09c8c2649f310b851528c2a1fc898ec233b907de (patch)
tree32cdfef25433740018407b33dfa76a9d9c790b1f /pick_visualization.m
parent9306970c62771c6c9393ce14f00ff9490ad3239c (diff)
downloadmode_match-09c8c2649f310b851528c2a1fc898ec233b907de.tar.gz
mode_match-09c8c2649f310b851528c2a1fc898ec233b907de.zip
Added function which picks n possible solutions
Diffstat (limited to 'pick_visualization.m')
-rw-r--r--pick_visualization.m19
1 files changed, 19 insertions, 0 deletions
diff --git a/pick_visualization.m b/pick_visualization.m
new file mode 100644
index 0000000..ef679fc
--- /dev/null
+++ b/pick_visualization.m
@@ -0,0 +1,19 @@
+function [ ] = pick_visualization( possible_lens_placement_uniq, possible_lens_placement, possible_lens_set, index, n_visualizations, q0, qf, Ltot, lambda )
+%Picks n_visualizations of sets of data and graphs each
+x0 = 0;
+
+n_possible_lens_placement = min(n_visualizations,size(possible_lens_placement_uniq,1));
+
+for n_graph = 1:n_possible_lens_placement
+ figure(n_graph)
+ w_final_trial = solution_visualization(q0, x0, qf, Ltot, optics_placer(possible_lens_placement(index(n_graph),:), possible_lens_set(index(n_graph),:)), lambda);
+
+ str1=sprintf('\n 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('f_2 = %0.4f, x_2 = %0.4f\n',possible_lens_set(index(n_graph),2),possible_lens_placement(index(n_graph),2));
+ str3=sprintf('f_3 = %0.4f, x_3 = %0.4f\n',possible_lens_set(index(n_graph),3),possible_lens_placement(index(n_graph),3));
+ tstr='Solution #';
+ title([tstr, num2str(n_graph), str1, str2, str3]);
+end
+
+end
+