Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
example:correlation_analysis_in_fmri_data [2010/04/07 12:46]
timeng typo
example:correlation_analysis_in_fmri_data [2017/08/17 11:21] (current)
Line 11: Line 11:
 % contruct the projection matrix for the ROIs % contruct the projection matrix for the ROIs
 load aal_new_mat load aal_new_mat
-aal = read_mri('​aal_new.hdr'​)+aal = ft_read_mri('​aal_new.hdr'​)
 project = zeros(length(ROI),​ prod(aal.dim));​ project = zeros(length(ROI),​ prod(aal.dim));​
 for i=1:​length(ROI) for i=1:​length(ROI)
Line 20: Line 20:
 project = sparse(project);​ project = sparse(project);​
  
-mri = read_mri('​bwamarspr_rs_sess01_vol0001.nii'​);​+mri = ft_read_mri('​bwamarspr_rs_sess01_vol0001.nii'​);​
  
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Line 54: Line 54:
 for i=1:​length(filename) for i=1:​length(filename)
   disp(i);   disp(i);
-  tmp = read_mri(filename{i});​+  tmp = ft_read_mri(filename{i});​
   dat(:,i) = project * tmp.anatomy(:​);​   dat(:,i) = project * tmp.anatomy(:​);​
 end end