function maps=rri_corr_maps_notall(behav,datamat,n,bscans,cormode) % syntax maps=rri_corr_maps_notall(behav,datamat,n,bscans) %computes brain-behavior correlations on a subset of scans %The scan numbers containing behavior measures should be stored as a vector %in 'bscans' if ~exist('cormode','var'), cormode = 0; end % If some data are NaN or Inf, then we must use % miss version of the requested cormode if length(find(isfinite(behav(:))))