ck_GetROIidx.m 331 B

1234567891011
  1. function roiidx = ck_GetROIidx(roilabels,rois)
  2. % roilabels is a cell of desired ROIs to include
  3. % rois is a 2-column vector with {label , [idx(s)]}
  4. roiidx = []; roilab = rois(:,1);
  5. for idx = 1:length(roilabels)
  6. roiidx = cat(2,roiidx,...
  7. rois{strcmp(roilab, roilabels{idx}),2});
  8. end
  9. end