Commit 71a3b83f authored by Simone Liuzzo's avatar Simone Liuzzo

correct reshape of correctors strengths

parent bfea93d8
No preview for this file type
......@@ -58,7 +58,7 @@ if isfield(handles,'axes4') % displays corr. strengths
extracor = mod(Nc,32); % remove extra correctors from injection cells
cor_per_cell_std = squeeze(std(reshape(...
qemb.skewcor((1+extracor/2):(Nc-extracor/2),:),...
32,[],size(qemb.skewcor,2)),1,2));
[],32,size(qemb.skewcor,2)),1,1));
% cor_per_cell_mean = squeeze(mean(reshape(qemb.cor((1+extracor/2):(Nc-extracor/2),:),32,[],2),2));
bar(handles.axes4,cor_per_cell_std,'EdgeColor','none');
handles.axes4.XTick=[1:32];
......
......@@ -59,11 +59,11 @@ if nargin >= 4 % displays quad rotations
Nc = length([diptilt]);
extracor = mod(Nc,32);
cor_per_cell_dip = squeeze(std(reshape(diptilt((1+extracor/2):(Nc-extracor/2)),32,[]),1,2));
cor_per_cell_dip = squeeze(std(reshape(diptilt((1+extracor/2):(Nc-extracor/2)),[],32),1,2));
Nc = length([tilts]);
extracor = mod(Nc,32);
cor_per_cell_quad = squeeze(std(reshape(tilts((1+extracor/2):(Nc-extracor/2)),32,[]),1,2));
cor_per_cell_quad = squeeze(std(reshape(tilts((1+extracor/2):(Nc-extracor/2)),[],32),1,1));
% colormap default;
yyaxis(ax,'left');
......@@ -77,7 +77,7 @@ if nargin >= 4 % displays quad rotations
legend(ax,'std quad','std dip');
grid(ax,'on');
set(ax,'Xlim',[0 32+1],'FontSize',6);
set(ax,'Xlim',[0 32+1],'FontSize',8);
......
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