Commit d96ad1e0 authored by Simone Liuzzo's avatar Simone Liuzzo

all sextupoles devices as for tuneresponse.m

parent b9246fe0
......@@ -31,11 +31,12 @@ DGL=latnewchrom.get(1,'sx') - atmodel.get(1,'sx');
Mat(:,2)=DGL/DQ;
% select changed gradients and get device familiy names.
[uMat,iq,~]=unique(Mat,'rows');
selnonzero=uMat(:,1)~=0 & uMat(:,2)~=0;
devs=ebs.sxfamname(iq(selnonzero));
resp=[uMat(selnonzero,1),uMat(selnonzero,2)];
%[uMat,iq,~]=unique(Mat,'rows');
%selnonzero=uMat(:,1)~=0 & uMat(:,2)~=0;
%devs=ebs.sxfamname(iq(selnonzero));
%resp=[uMat(selnonzero,1),uMat(selnonzero,2)];
devs=ebs.sxname(1:length(DGL));
resp=Mat;
% save file .csv
......
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