-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle_AES.m
27 lines (22 loc) · 893 Bytes
/
single_AES.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
close all;
clear all;
file = sprintf('em3_Fe after PES.gph');
fid = fopen(file,'r'); % reads the NR of lines ...
n=0; tline = fgetl(fid);
while ischar(tline)
tline = fgetl(fid);
n = n+1;
end; fclose(fid);
data = dlmread(file,' ',[141 1 n-2 7]); %exclude header plus last line !
l=1;
for i=2:2:size(data);
energy(l,1) = data(i-1,2);
AES_intensity(l,1) = data(i,2);
beam_current(l,1) = data(i,7);
AES_normalized_intensity(l,1) = AES_intensity(l,1) / beam_current(l,1);
l=l+1;
end;
figure();
plot(energy,AES_normalized_intensity);
title('')
% ratio Bi/Sb ratio=5.21*(exp(-(x)/0.79))./(1-exp(-(x)/1.09))