x = doseProfile(:,1);
D = doseProfile(:,2);
ind = find(x>=0);
xpos = x(ind);
Dpos = D(ind);
[~,~,~,~,xpos20,~] = crossing_V7(Dpos,xpos,20,'linear');
[~,~,~,~,xpos80,~] = crossing_V7(Dpos,xpos,80,'linear');
XDpos = xpos20-xpos80
ind = find(x<=0);
xneg = x(ind);
Dneg = D(ind);
[~,xneg20,~,~,~,~] = crossing_V7(Dneg,xneg,20,'linear');
[~,xneg80,~,~,~,~] = crossing_V7(Dneg,xneg,80,'linear');
XDneg = xneg80-xneg20
plot(x,D,xpos20,20,'+',xpos80,80,'+',xneg20,20,'+',xneg80,80,'+');grid
0 Comments
Sign in to comment.