Removing the linear trend:
Read 3D EPI functional images: "/export/home/wayne/N5_resting_solaris/smooth_test".Warning: Wrong spelling of 'private' as a directory name in /usr/matlab7/softwares/REST2007V1.3_100201/rest_spm5_files/@read_nifti/PRIVATE/niftistruc.m
> In nic_spm_vol_nifti at 16
In nic_spm_vol>subfunic_ at 121
In nic_spm_vol>subfunic_1 at 83
In nic_spm_vol>subfunic_2 at 71
In nic_spm_vol at 57
In rest_ReadNiftiImage at 75
In rest_readfile at 61
In rest_to4d at 41
In rest_detrend at 23
In FC_GUI>Detrend at 1171
In FC_GUI>btnDetrend_Callback at 1153
In gui_mainfcn at 75
In FC_GUI at 36
Warning: Wrong spelling of 'private' as a directory name in /usr/matlab7/softwares/REST2007V1.3_100201/rest_spm5_files/@read_nifti/PRIVATE/read_extras.m
> In nic_spm_vol_nifti at 16
In nic_spm_vol>subfunic_ at 121
In nic_spm_vol>subfunic_1 at 83
In nic_spm_vol>subfunic_2 at 71
In nic_spm_vol at 57
In rest_ReadNiftiImage at 75
In rest_readfile at 61
In rest_to4d at 41
In rest_detrend at 23
In FC_GUI>Detrend at 1171
In FC_GUI>btnDetrend_Callback at 1153
In gui_mainfcn at 75
In FC_GUI at 36
Warning: Wrong spelling of 'private' as a directory name in /usr/matlab7/softwares/REST2007V1.3_100201/rest_spm5_files/@read_nifti/PRIVATE/mayo2nifti1.m
> In nic_spm_vol_nifti at 16
In nic_spm_vol>subfunic_ at 121
In nic_spm_vol>subfunic_1 at 83
In nic_spm_vol>subfunic_2 at 71
In nic_spm_vol at 57
In rest_ReadNiftiImage at 75
In rest_readfile at 61
In rest_to4d at 41
In rest_detrend at 23
In FC_GUI>Detrend at 1171
In FC_GUI>btnDetrend_Callback at 1153
In gui_mainfcn at 75
In FC_GUI at 36
Warning: Wrong spelling of 'private' as a directory name in /usr/matlab7/softwares/REST2007V1.3_100201/rest_spm5_files/@read_nifti/PRIVATE/encode_qform0.m
> In nic_spm_vol_nifti at 16
In nic_spm_vol>subfunic_ at 121
In nic_spm_vol>subfunic_1 at 83
In nic_spm_vol>subfunic_2 at 71
In nic_spm_vol at 57
In rest_ReadNiftiImage at 75
In rest_readfile at 61
In rest_to4d at 41
In rest_detrend at 23
In FC_GUI>Detrend at 1171
In FC_GUI>btnDetrend_Callback at 1153
In gui_mainfcn at 75
In FC_GUI at 36
Warning: Wrong spelling of 'private' as a directory name in /usr/matlab7/softwares/REST2007V1.3_100201/rest_spm5_files/@read_nifti/PRIVATE/READ_HDR.M
> In read_nifti.read_nifti at 27
In nic_spm_vol_nifti at 16
In nic_spm_vol>subfunic_ at 121
In nic_spm_vol>subfunic_1 at 83
In nic_spm_vol>subfunic_2 at 71
In nic_spm_vol at 57
In rest_ReadNiftiImage at 75
In rest_readfile at 61
In rest_to4d at 41
In rest_detrend at 23
In FC_GUI>Detrend at 1171
In FC_GUI>btnDetrend_Callback at 1153
In gui_mainfcn at 75
In FC_GUI at 36
Warning: Function call READ_HDR invokes inexact match /usr/matlab7/softwares/REST2007V1.3_100201/rest_spm5_files/@read_nifti/PRIVATE/READ_HDR.M.
> In read_nifti.read_nifti at 27
In nic_spm_vol_nifti at 16
In nic_spm_vol>subfunic_ at 121
In nic_spm_vol>subfunic_1 at 83
In nic_spm_vol>subfunic_2 at 71
In nic_spm_vol at 57
In rest_ReadNiftiImage at 75
In rest_readfile at 61
In rest_to4d at 41
In rest_detrend at 23
In FC_GUI>Detrend at 1171
In FC_GUI>btnDetrend_Callback at 1153
In gui_mainfcn at 75
In FC_GUI at 36
Warning: Wrong spelling of 'private' as a directory name in /usr/matlab7/softwares/REST2007V1.3_100201/rest_spm5_files/@read_nifti/PRIVATE/read_hdr_raw.m
> In read_nifti.read_nifti at 27
In nic_spm_vol_nifti at 16
In nic_spm_vol>subfunic_ at 121
In nic_spm_vol>subfunic_1 at 83
In nic_spm_vol>subfunic_2 at 71
In nic_spm_vol at 57
In rest_ReadNiftiImage at 75
In rest_readfile at 61
In rest_to4d at 41
In rest_detrend at 23
In FC_GUI>Detrend at 1171
In FC_GUI>btnDetrend_Callback at 1153
In gui_mainfcn at 75
In FC_GUI at 36
Warning: Wrong spelling of 'private' as a directory name in /usr/matlab7/softwares/REST2007V1.3_100201/rest_spm5_files/@read_nifti/PRIVATE/GETDICT.M
> In READ_HDR at 14
In read_nifti.read_nifti at 27
In nic_spm_vol_nifti at 16
In nic_spm_vol>subfunic_ at 121
In nic_spm_vol>subfunic_1 at 83
In nic_spm_vol>subfunic_2 at 71
In nic_spm_vol at 57
In rest_ReadNiftiImage at 75
In rest_readfile at 61
In rest_to4d at 41
In rest_detrend at 23
In FC_GUI>Detrend at 1171
In FC_GUI>btnDetrend_Callback at 1153
In gui_mainfcn at 75
In FC_GUI at 36
Warning: Function call GETDICT invokes inexact match /usr/matlab7/softwares/REST2007V1.3_100201/rest_spm5_files/@read_nifti/PRIVATE/GETDICT.M.
> In READ_HDR at 14
In read_nifti.read_nifti at 27
In nic_spm_vol_nifti at 16
In nic_spm_vol>subfunic_ at 121
In nic_spm_vol>subfunic_1 at 83
In nic_spm_vol>subfunic_2 at 71
In nic_spm_vol at 57
In rest_ReadNiftiImage at 75
In rest_readfile at 61
In rest_to4d at 41
In rest_detrend at 23
In FC_GUI>Detrend at 1171
In FC_GUI>btnDetrend_Callback at 1153
In gui_mainfcn at 75
In FC_GUI at 36
Warning: Wrong spelling of 'private' as a directory name in /usr/matlab7/softwares/REST2007V1.3_100201/rest_spm5_files/@read_nifti/PRIVATE/mayostruc.m
> In READ_HDR at 33
In read_nifti.read_nifti at 27
In nic_spm_vol_nifti at 16
In nic_spm_vol>subfunic_ at 121
In nic_spm_vol>subfunic_1 at 83
In nic_spm_vol>subfunic_2 at 71
In nic_spm_vol at 57
In rest_ReadNiftiImage at 75
In rest_readfile at 61
In rest_to4d at 41
In rest_detrend at 23
In FC_GUI>Detrend at 1171
In FC_GUI>btnDetrend_Callback at 1153
In gui_mainfcn at 75
In FC_GUI at 36
Warning: Wrong spelling of 'private' as a directory name in /usr/matlab7/softwares/REST2007V1.3_100201/rest_spm5_files/@create_file_array/PRIVATE/scl_slope.m
> In read_nifti.read_nifti at 70
In nic_spm_vol_nifti at 16
In nic_spm_vol>subfunic_ at 121
In nic_spm_vol>subfunic_1 at 83
In nic_spm_vol>subfunic_2 at 71
In nic_spm_vol at 57
In rest_ReadNiftiImage at 75
In rest_readfile at 61
In rest_to4d at 41
In rest_detrend at 23
In FC_GUI>Detrend at 1171
In FC_GUI>btnDetrend_Callback at 1153
In gui_mainfcn at 75
In FC_GUI at 36
Warning: Wrong spelling of 'private' as a directory name in /usr/matlab7/softwares/REST2007V1.3_100201/rest_spm5_files/@create_file_array/PRIVATE/scl_inter.m
> In read_nifti.read_nifti at 70
In nic_spm_vol_nifti at 16
In nic_spm_vol>subfunic_ at 121
In nic_spm_vol>subfunic_1 at 83
In nic_spm_vol>subfunic_2 at 71
In nic_spm_vol at 57
In rest_ReadNiftiImage at 75
In rest_readfile at 61
In rest_to4d at 41
In rest_detrend at 23
In FC_GUI>Detrend at 1171
In FC_GUI>btnDetrend_Callback at 1153
In gui_mainfcn at 75
In FC_GUI at 36
Warning: Wrong spelling of 'private' as a directory name in /usr/matlab7/softwares/REST2007V1.3_100201/rest_spm5_files/@create_file_array/PRIVATE/FNAME.M
> In create_file_array.create_file_array at 31
In read_nifti.read_nifti at 70
In nic_spm_vol_nifti at 16
In nic_spm_vol>subfunic_ at 121
In nic_spm_vol>subfunic_1 at 83
In nic_spm_vol>subfunic_2 at 71
In nic_spm_vol at 57
In rest_ReadNiftiImage at 75
In rest_readfile at 61
In rest_to4d at 41
In rest_detrend at 23
In FC_GUI>Detrend at 1171
In FC_GUI>btnDetrend_Callback at 1153
In gui_mainfcn at 75
In FC_GUI at 36
Warning: Function call FNAME invokes inexact match /usr/matlab7/softwares/REST2007V1.3_100201/rest_spm5_files/@create_file_array/PRIVATE/FNAME.M.
> In create_file_array.create_file_array at 31
In read_nifti.read_nifti at 70
In nic_spm_vol_nifti at 16
In nic_spm_vol>subfunic_ at 121
In nic_spm_vol>subfunic_1 at 83
In nic_spm_vol>subfunic_2 at 71
In nic_spm_vol at 57
In rest_ReadNiftiImage at 75
In rest_readfile at 61
In rest_to4d at 41
In rest_detrend at 23
In FC_GUI>Detrend at 1171
In FC_GUI>btnDetrend_Callback at 1153
In gui_mainfcn at 75
In FC_GUI at 36
Warning: Wrong spelling of 'private' as a directory name in /usr/matlab7/softwares/REST2007V1.3_100201/rest_spm5_files/@create_file_array/PRIVATE/DIM.M
> In create_file_array.create_file_array at 32
In read_nifti.read_nifti at 70
In nic_spm_vol_nifti at 16
In nic_spm_vol>subfunic_ at 121
In nic_spm_vol>subfunic_1 at 83
In nic_spm_vol>subfunic_2 at 71
In nic_spm_vol at 57
In rest_ReadNiftiImage at 75
In rest_readfile at 61
In rest_to4d at 41
In rest_detrend at 23
In FC_GUI>Detrend at 1171
In FC_GUI>btnDetrend_Callback at 1153
In gui_mainfcn at 75
In FC_GUI at 36
Warning: Function call DIM invokes inexact match /usr/matlab7/softwares/REST2007V1.3_100201/rest_spm5_files/@create_file_array/PRIVATE/DIM.M.
> In create_file_array.create_file_array at 32
In read_nifti.read_nifti at 70
In nic_spm_vol_nifti at 16
In nic_spm_vol>subfunic_ at 121
In nic_spm_vol>subfunic_1 at 83
In nic_spm_vol>subfunic_2 at 71
In nic_spm_vol at 57
In rest_ReadNiftiImage at 75
In rest_readfile at 61
In rest_to4d at 41
In rest_detrend at 23
In FC_GUI>Detrend at 1171
In FC_GUI>btnDetrend_Callback at 1153
In gui_mainfcn at 75
In FC_GUI at 36
Warning: Wrong spelling of 'private' as a directory name in /usr/matlab7/softwares/REST2007V1.3_100201/rest_spm5_files/@create_file_array/PRIVATE/DTYPE.M
> In create_file_array.create_file_array at 33
In read_nifti.read_nifti at 70
In nic_spm_vol_nifti at 16
In nic_spm_vol>subfunic_ at 121
In nic_spm_vol>subfunic_1 at 83
In nic_spm_vol>subfunic_2 at 71
In nic_spm_vol at 57
In rest_ReadNiftiImage at 75
In rest_readfile at 61
In rest_to4d at 41
In rest_detrend at 23
In FC_GUI>Detrend at 1171
In FC_GUI>btnDetrend_Callback at 1153
In gui_mainfcn at 75
In FC_GUI at 36
Warning: Function call DTYPE invokes inexact match /usr/matlab7/softwares/REST2007V1.3_100201/rest_spm5_files/@create_file_array/PRIVATE/DTYPE.M.
> In create_file_array.create_file_array at 33
In read_nifti.read_nifti at 70
In nic_spm_vol_nifti at 16
In nic_spm_vol>subfunic_ at 121
In nic_spm_vol>subfunic_1 at 83
In nic_spm_vol>subfunic_2 at 71
In nic_spm_vol at 57
In rest_ReadNiftiImage at 75
In rest_readfile at 61
In rest_to4d at 41
In rest_detrend at 23
In FC_GUI>Detrend at 1171
In FC_GUI>btnDetrend_Callback at 1153
In gui_mainfcn at 75
In FC_GUI at 36
Warning: Wrong spelling of 'private' as a directory name in /usr/matlab7/softwares/REST2007V1.3_100201/rest_spm5_files/@create_file_array/PRIVATE/datatypes.m
> In create_file_array.create_file_array at 33
In read_nifti.read_nifti at 70
In nic_spm_vol_nifti at 16
In nic_spm_vol>subfunic_ at 121
In nic_spm_vol>subfunic_1 at 83
In nic_spm_vol>subfunic_2 at 71
In nic_spm_vol at 57
In rest_ReadNiftiImage at 75
In rest_readfile at 61
In rest_to4d at 41
In rest_detrend at 23
In FC_GUI>Detrend at 1171
In FC_GUI>btnDetrend_Callback at 1153
In gui_mainfcn at 75
In FC_GUI at 36
Warning: Wrong spelling of 'private' as a directory name in /usr/matlab7/softwares/REST2007V1.3_100201/rest_spm5_files/@create_file_array/PRIVATE/OFFSET.M
> In create_file_array.create_file_array at 34
In read_nifti.read_nifti at 70
In nic_spm_vol_nifti at 16
In nic_spm_vol>subfunic_ at 121
In nic_spm_vol>subfunic_1 at 83
In nic_spm_vol>subfunic_2 at 71
In nic_spm_vol at 57
In rest_ReadNiftiImage at 75
In rest_readfile at 61
In rest_to4d at 41
In rest_detrend at 23
In FC_GUI>Detrend at 1171
In FC_GUI>btnDetrend_Callback at 1153
In gui_mainfcn at 75
In FC_GUI at 36
Warning: Function call OFFSET invokes inexact match /usr/matlab7/softwares/REST2007V1.3_100201/rest_spm5_files/@create_file_array/PRIVATE/OFFSET.M.
> In create_file_array.create_file_array at 34
In read_nifti.read_nifti at 70
In nic_spm_vol_nifti at 16
In nic_spm_vol>subfunic_ at 121
In nic_spm_vol>subfunic_1 at 83
In nic_spm_vol>subfunic_2 at 71
In nic_spm_vol at 57
In rest_ReadNiftiImage at 75
In rest_readfile at 61
In rest_to4d at 41
In rest_detrend at 23
In FC_GUI>Detrend at 1171
In FC_GUI>btnDetrend_Callback at 1153
In gui_mainfcn at 75
In FC_GUI at 36
Exception occured. ()
Error using ==> rest_ReadNiftiImage
Meet error while reading the data
>>