-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Hi-
I wanted to make you aware of a correction to the code in splitbrain.m that handles non-coronal views. I would recommend replacing lines 65-77 with:
elseif strcmp(orientation, 'a') || strcmp(orientation, 's')
% both axial and sagittal views use a cut in the XZ plane
if (min(cortex.cortex.vert(:,3)) < b) && (b < max(cortex.cortex.vert(:,3)))
[idx, ~] = sort(find(abs((cortex.cortex.vert(:,3) - (m.*cortex.cortex.vert(:,1) + b - thegap))) <= thegap));
% get indices of verts with z between (mx + b - 2*thegap) and (mx + b)
else
disp('Intercept lies outside S-I extent of the mesh.');
[idx, ~] = sort(find(abs((cortex.cortex.vert(:,3)-(m.*cortex.cortex.vert(:,1) + b + thegap))+2*thegap)<=thegap));
end
Best,
Aaron
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels