diff options
author | Matt Argao <mcargao@email.wm.edu> | 2013-02-20 14:14:31 -0500 |
---|---|---|
committer | Matt Argao <mcargao@email.wm.edu> | 2013-02-20 14:14:31 -0500 |
commit | febb98c32e259ca4f4e574faef4b157c8d1f2830 (patch) | |
tree | 2080c2eb88ed14f4e0313d0ccb9787912db9fa98 /energy_vs_stability.m | |
parent | dba855e1a5dc601972d4d42ac870b04e4ba68340 (diff) | |
download | mode_match-febb98c32e259ca4f4e574faef4b157c8d1f2830.tar.gz mode_match-febb98c32e259ca4f4e574faef4b157c8d1f2830.zip |
Energy vs. Stability graph now outputs # corresponding to solution #.
Diffstat (limited to 'energy_vs_stability.m')
-rw-r--r-- | energy_vs_stability.m | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/energy_vs_stability.m b/energy_vs_stability.m index 88223c1..da03f89 100644 --- a/energy_vs_stability.m +++ b/energy_vs_stability.m @@ -1,4 +1,4 @@ -function [energy, stability] = energy_vs_stability( possible_energy, stability, index ) +function [] = energy_vs_stability( possible_energy, stability, index ) %ENERGY_VS_STABILITY Summary of this function goes here % Detailed explanation goes here @@ -15,9 +15,17 @@ function [energy, stability] = energy_vs_stability( possible_energy, stability, figure(n+1) textCell = arrayfun(@(x,y) sprintf('(%3.2f, %3.2f)',x,y),energy,fixed_stability,'un',0); - scatter(energy,fixed_stability,25,c,'filled') - xlabel('Energy') - ylabel('Stability') + scatter(energy,fixed_stability,25,c,'filled'); + xlabel('Energy'); + ylabel('Stability'); + + dx =0.000000005; + dy =0.000000005; + + for i = 1:n + n_solution = num2str(i); + text(energy(i)+dx, fixed_stability(i)+dy, n_solution, 'FontSize',12); + end % for i = 1:n % text(energy(i), fixed_stability(i), textCell{i}, 'FontSize',8) |