summaryrefslogtreecommitdiff
path: root/loadSimulation.m
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2014-04-22 11:48:18 -0400
committerEugeniy Mikhailov <evgmik@gmail.com>2014-04-22 11:48:18 -0400
commitaddbb92ff06b21d2188eeefdb17692beb85e4b1c (patch)
treeded7ca8cc46e6318e025ad211cb278e724e32913 /loadSimulation.m
downloadeit_filter_simulations-addbb92ff06b21d2188eeefdb17692beb85e4b1c.tar.gz
eit_filter_simulations-addbb92ff06b21d2188eeefdb17692beb85e4b1c.zip
Hunter's initial release
Diffstat (limited to 'loadSimulation.m')
-rw-r--r--loadSimulation.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/loadSimulation.m b/loadSimulation.m
new file mode 100644
index 0000000..e5f0be3
--- /dev/null
+++ b/loadSimulation.m
@@ -0,0 +1,7 @@
+function [width, minAbsorption, detunings, absorptions] = loadSimulation(dataFile)
+ data = load(dataFile);
+ detunings = data(:,1);
+ absorptions = data(:,2);
+ [width, minAbsorption] = getPeak(detunings, absorptions);
+ plot(detunings, absorptions);
+end \ No newline at end of file