function maps=rri_corr_maps(behav,datamat,n,k);

% creates image-wide correlation map for k scans with behavior vector , or
% whatever is in the behav variable (eg. seed voxel)
%
% written 4.12.98 ARM
% syntax maps=rri_corr_maps(behav,datamat,n,k);


maps=[];

	for i=1:k
		temp=[];

		temp=rri_xcor((behav(1+(n* (i-1) ):n*i,:)),(datamat(1+(n*(i-1)):n*i,:)));

		maps=[maps;temp];

	end

%disp(' ')
%disp('Program complete')
