summaryrefslogtreecommitdiff
path: root/loadSimulation.m
diff options
context:
space:
mode:
Diffstat (limited to 'loadSimulation.m')
-rw-r--r--loadSimulation.m8
1 files changed, 6 insertions, 2 deletions
diff --git a/loadSimulation.m b/loadSimulation.m
index e5f0be3..2626cdb 100644
--- a/loadSimulation.m
+++ b/loadSimulation.m
@@ -2,6 +2,10 @@ function [width, minAbsorption, detunings, absorptions] = loadSimulation(dataFil
data = load(dataFile);
detunings = data(:,1);
absorptions = data(:,2);
- [width, minAbsorption] = getPeak(detunings, absorptions);
- plot(detunings, absorptions);
+ [width, minAbsorption, transmission, features] = getPeak(detunings, absorptions);
+ figure
+ hold all
+ plot(detunings, absorptions)
+ plot(features(:,1), features(:,2), 'r*')
+
end \ No newline at end of file