Skip to content

corrections in splitbrain.m #24

@aarongeller

Description

@aarongeller

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions