diff options
author | Matt Argao <mcargao@email.wm.edu> | 2013-02-11 14:52:09 -0500 |
---|---|---|
committer | Matt Argao <mcargao@email.wm.edu> | 2013-02-11 14:52:49 -0500 |
commit | dba855e1a5dc601972d4d42ac870b04e4ba68340 (patch) | |
tree | 00f7499da82db1d7872be64fe64b0c40e75dfd60 /energy_vs_stability.m | |
parent | e866ad9a02cd9fc55d9a27cd90cc9598ce894be5 (diff) | |
download | mode_match-dba855e1a5dc601972d4d42ac870b04e4ba68340.tar.gz mode_match-dba855e1a5dc601972d4d42ac870b04e4ba68340.zip |
Added energy vs stability summary
Diffstat (limited to 'energy_vs_stability.m')
-rw-r--r-- | energy_vs_stability.m | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/energy_vs_stability.m b/energy_vs_stability.m new file mode 100644 index 0000000..88223c1 --- /dev/null +++ b/energy_vs_stability.m @@ -0,0 +1,26 @@ +function [energy, stability] = energy_vs_stability( possible_energy, stability, index ) +%ENERGY_VS_STABILITY Summary of this function goes here +% Detailed explanation goes here + + n = size(stability,2); + c = 1:n; + + for i=1:n + fixed_stability(i,1) = stability(i); + end + + for i = 1:n + energy(i,1) = possible_energy(index(i)); + end + + 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') + +% for i = 1:n +% text(energy(i), fixed_stability(i), textCell{i}, 'FontSize',8) +% end + +end |