diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-04-22 11:48:18 -0400 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-04-22 11:48:18 -0400 |
commit | addbb92ff06b21d2188eeefdb17692beb85e4b1c (patch) | |
tree | ded7ca8cc46e6318e025ad211cb278e724e32913 /loadSimulation.m | |
download | eit_filter_simulations-addbb92ff06b21d2188eeefdb17692beb85e4b1c.tar.gz eit_filter_simulations-addbb92ff06b21d2188eeefdb17692beb85e4b1c.zip |
Hunter's initial release
Diffstat (limited to 'loadSimulation.m')
-rw-r--r-- | loadSimulation.m | 7 |
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 |