Commit b276bd80 authored by Simone Liuzzo's avatar Simone Liuzzo

double division by te length of dispesion derivative corrected

parent 6170b4f2
......@@ -14,8 +14,13 @@ quadresp=semderiv(qemb.at(:),qemres.dpp,qemres.qpidx,qemres.bpmidx,...
qemres.steerhidx(semres.hlist),qemres.steervidx(semres.vlist),vargs1{:});
[~,quadetaresp]=qemdispderiv(qemb.at(:),qemres.ct,@setskew,1.e-4,...
qemres.qpidx,qemres.bpmidx,vargs2{:});
lq=size(quadresp,1)+size(quadetaresp,1);
quadresponse=[quadresp;quadetaresp].*qemres.ql(:,ones(1,lq))';
% this modification is probably
% a bug that existed from the old qempanel.
% lq=size(quadresp,1)+size(quadetaresp,1);
% quadresponse=[quadresp;quadetaresp].*qemres.ql(:,ones(1,lq))';
lq=size(quadresp,1);%+size(quadetaresp,1);
quadresponse=[quadresp.*qemres.ql(:,ones(1,lq))';quadetaresp];
function elt=setskew(elt,dval)
vini=elt.PolynomA(2);
......
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