summaryrefslogtreecommitdiff
path: root/loadSimulation.m
diff options
context:
space:
mode:
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