Skip to content

Commit

Permalink
Added support for xh
Browse files Browse the repository at this point in the history
	modified:   get_aparc12_cortical_rois.m
  • Loading branch information
shanqing-cai committed Nov 16, 2013
1 parent 5532104 commit f3de399
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion get_aparc12_cortical_rois.m
Expand Up @@ -68,14 +68,26 @@
hemi = 'lh';
elseif ~isempty(fsic(varargin, 'rh'))
hemi = 'rh';
elseif ~isempty(fsic(varargin, 'xh'))
hemi = 'xh';
else
hemi = '';
end

if ~isempty(hemi)
if ~isempty(hemi) && ~isequal(hemi, 'xh')
for i1 = 1 : numel(roi_names)
roi_names{i1} = [hemi, '_', roi_names{i1}];
end
else
hemis = {'lh', 'rh'};
nr = length(roi_names);
roi_names = [roi_names, roi_names];
for i0 = 1 : numel(hemis)
t_hemi = hemis{i0};
for i1 = 1 : nr
roi_names{(i0 - 1) * nr + i1} = [t_hemi, '_', roi_names{(i0 - 1) * nr + i1}];
end
end
end


Expand Down

0 comments on commit f3de399

Please sign in to comment.