Commit e9a7da7f authored by Simone Liuzzo's avatar Simone Liuzzo

retune button restored

parent 6756ffca
......@@ -3,7 +3,7 @@ function qemb = qemretune(qemb,qemres,tunes)
[k,tilt]=semtilt(qemb.kn,qemb.ks); %#ok<ASGLU>
mach=atfittune(qemb.at,tunes,'QF1\w*','QD2\w*');
knew=getcellstruct(mach,'PolynomB',qemres.qpidx,2);
knew=atgetfieldvalues(mach,qemres.qpidx,'PolynomB',{1,2});
qemb.kn=knew.*cos(2*tilt);
qemb.ks=-knew.*sin(2*tilt);
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment