Commit aa3c1f70 authored by Simone Liuzzo's avatar Simone Liuzzo

corrected catenation

parent b0db1c90
......@@ -2,7 +2,7 @@ function stpb=qemstopbands(qemres,qemb,qemb0)
% compute stopband from quadrupole gradients.
% added unique. correctors and quadrupoles are the same magnets!
[indbeta,~,ic]=unique([qemres.qpidx; qemres.qcoridx]);
[indbeta,~,ic]=unique([qemres.qpidx, qemres.qcoridx]);
[idx,ik]=sort(indbeta);
[lind,avb,avm]=atavedata(qemb0.at,0,idx); %#ok<ASGLU>
......
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