Dear Cyril,
gui_mainfcn is a Matlab function used by interfaces generated with
Guide (the batch editor window being one) and should be somewhere in
your path.
Does the following line helps?
>> addpath(fullfile(matlabroot,'toolbox','matlab','guide'))
All the best,
Guillaume.
2009/6/10 cyril pernet <[log in to unmask]>:
> Dear Guillaume, SPMers,
>
> I just installed matlab R2008b (7.7.0.471) on my Red Hat .. and now I cannot
> use SPM8 for some weird gui error ... :'(
> note that it does load the 1st GUI if I type in 'spm' but after heating the
> fMRI button I got the same error as typing directly spm fmri
>
> --------------------------
>
> Initialising SPM...??? Undefined function or method 'gui_mainfcn' for input
> arguments of type 'struct'.
>
> Error in ==> cfg_ui at 51
> [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
>
> Error in ==> spm_jobman at 145
> f = cfg_ui('Visible','off'); % Create invisible batch ui
>
> Error in ==> spm at 340
> spm_jobman('initcfg');
>
> ??? Error while evaluating uicontrol Callback
>
> -------------------------------
>
> any suggestions ?
>
> cheers
> cyril
>
>
> --
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
>
|