aboutsummaryrefslogtreecommitdiff
path: root/stability_visualization.m
diff options
context:
space:
mode:
authorMatt Argao <mcargao@email.wm.edu>2013-03-31 22:35:49 -0400
committerMatt Argao <mcargao@email.wm.edu>2013-03-31 22:35:49 -0400
commit4d08c162d5ce4ac8b7eaeb9d985bfef62c886e99 (patch)
tree45733367770ddc4585faa09976b403a858d5d8e5 /stability_visualization.m
parent2f3d161985ae2e57ed966981e58eb117d3a49c71 (diff)
downloadmode_match-4d08c162d5ce4ac8b7eaeb9d985bfef62c886e99.tar.gz
mode_match-4d08c162d5ce4ac8b7eaeb9d985bfef62c886e99.zip
Added descriptions to each function.v3.0
Diffstat (limited to 'stability_visualization.m')
-rw-r--r--stability_visualization.m7
1 files changed, 3 insertions, 4 deletions
diff --git a/stability_visualization.m b/stability_visualization.m
index ba0a8de..37e9aad 100644
--- a/stability_visualization.m
+++ b/stability_visualization.m
@@ -1,12 +1,11 @@
-function [stability] = stability_visualization( possible_lens_placement_uniq, q0, qf, xf, optics_position, optics_set, lambda, n, n_hist, index )
-%STABILITY_VISUALIZATION Summary of this function goes here
-% Detailed explanation goes here
+function [stability] = stability_visualization( possible_lens_placement_uniq, q0, qf, xf, optics_position, optics_set, lambda, n, n_hist, index, self_flag )
+%Visualizes stability graph
n_possible_lens_placement = min(n, size(possible_lens_placement_uniq,1));
for i=1:n
figure(i)
- [hist_h, hist_x] = solution_stability( q0, qf, xf, optics_position(index(i),:), optics_set(index(i),:), lambda, n_hist );
+ [hist_h, hist_x] = solution_stability( q0, qf, xf, optics_position(index(i),:), optics_set(index(i),:), lambda, n_hist, self_flag );
subplot(2,1,2); plot(hist_x, hist_h);
area = trapz(hist_x, hist_h);
str_n = ['# of test points = ', num2str(n_hist)];