0001 function [deltap,deltam,Rfin, loss,X0l] = atmomap(ring, Nturn)
0002
0003
0004
0005
0006
0007
0008
0009
0010 dpp0 = [-0.05:0.05:-0.01, 0, 0.01:0.05:0.05];
0011
0012 X0l = zeros(6, length(dpp0));
0013 X0l(5,:) = dpp0;
0014
0015
0016 [Rfin, loss] =ringpass(ring,X0l,Nturn);
0017
0018
0019 [tmp, indxzero] = find(dpp0==0);
0020 taglossp = min([length(dpp0) indxzero-1+find(loss(indxzero:end))]);
0021 taglossm = max([1 find(loss(1:indxzero))]);
0022
0023 deltap = dpp0(taglossp);
0024 deltam = dpp0(taglossm);