Do you have the original SPM5 installation as well as the updates? If you are
just using the updates, then there will be no
spm5\@file_array\private\offset.m file (because this function has not changed
since the original release of SPM5).
The original spm5.tar.gz file should be unpacked, and then the patches
unpacked on top of this.
Best regards,
-John
On Tuesday 29 January 2008 03:16, shiliang huang wrote:
> Hi every one
>
> I used SPM5 and FieldMap version2.0 and MATLAB2006. I use the fieldmap of
> SPM to correct the distortion of EPI scan. The data which I used is the
> FieldMapExampleData of FieldMap.I did follow the manual.I used the
> nepi_stretch in FieldMapExampleData as the data.But it gave follow wrong
>
> messages:
> >> FieldMap
>
> pm_def =
>
> INPUT_DATA_FORMAT: 'PM'
> SHORT_ECHO_TIME: 10
> LONG_ECHO_TIME: 14.7600
>
>
> pm_def =
>
> INPUT_DATA_FORMAT: 'PM'
> SHORT_ECHO_TIME: 10
> LONG_ECHO_TIME: 14.7600
> MASKBRAIN: 0
> UNWRAPPING_METHOD: 'Mark3D'
> FWHM: 10
> PAD: 0
> WS: 1
> MFLAGS: [1x1 struct]
> EPI_BASED_FIELDMAPS: 0
> K_SPACE_TRAVERSAL_BLIP_DIR: 1
>
>
> pm_def =
>
> INPUT_DATA_FORMAT: 'PM'
> SHORT_ECHO_TIME: 10
> LONG_ECHO_TIME: 14.7600
> MASKBRAIN: 0
> UNWRAPPING_METHOD: 'Mark3D'
> FWHM: 10
> PAD: 0
> WS: 1
> MFLAGS: [1x1 struct]
> EPI_BASED_FIELDMAPS: 0
> K_SPACE_TRAVERSAL_BLIP_DIR: 1
> TOTAL_EPI_READOUT_TIME: 32
>
> ??? Error using ==> feval
> Undefined function or method 'offset' for input arguments of type
> 'file_array'.
>
> Error in ==> file_array.subsasgn>asgn at 144
> obj = feval(fun,obj,dat);
>
> Error in ==> file_array.subsasgn at 22
> case 'offset', obj = asgn(obj,@offset, subs(2:end),dat);
> 2204416040ffset(obj,dat);
>
> Error in ==> nifti.subsasgn>assigndat at 361
> val.offset = max(sval.offset,0);
>
> Error in ==> nifti.subsasgn>fun at 76
> obj = assigndat(obj,val);
>
> Error in ==> nifti.subsasgn at 20
> obji = fun(obji,subs,val);
>
> Error in ==> spm_create_vol>create_vol at 79
> N.dat = dat;
>
> Error in ==> spm_create_vol at 16
> v = create_vol(V(i));
>
> Error in ==> spm_write_vol at 96
> V = spm_create_vol(V);
>
> Error in ==> FieldMap at 1706
> img=spm_write_vol(img,vol);
>
> Error in ==> FieldMap at 1682
> FieldMap('Write',IP.vdmP,IP.vdm.vdm,'',IP.vdmP.dt(1),vdm_info);
>
> Error in ==> FieldMap at 711
> FieldMap('FM2VDM',IP);
>
> ??? Error using ==> FieldMap('CreateFieldmap_Gui');
> Error using ==> feval
> Undefined function or method 'offset' for input arguments of type
> 'file_array'.
>
> ??? Error while evaluating uicontrol Callback
>
>
>
> How can I solve this problem? Thank you.
>
>
>
> Sincerely
>
> Wang Qiang
|