Hi When I try to install SPM8 I get the following error message:Initialising SPM...Error using fileparts Too many output arguments. Error in cfg_util>local_initapps (line 1217) [p n
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Pierre Brugieres
il 23 Lug 2014
Commentato: Pierre Brugieres
il 23 Lug 2014
Hi When I try to install SPM8 I get the following error message:Initialising SPM...Error using fileparts Too many output arguments.
Error in cfg_util>local_initapps (line 1217) [p n e v] = fileparts(appcfgs{k});
Error in cfg_util (line 587) local_initapps;
Error in spm_jobman (line 149) cfg_util('initcfg'); % This must be the first call to cfg_util
Error in spm (line 344) spm_jobman('initcfg');
Error while evaluating uicontrol Callback
What am I supposed to do? Thanks for your help Pierre
0 Commenti
Risposta accettata
Geoff Hayes
il 23 Lug 2014
Modificato: Geoff Hayes
il 23 Lug 2014
[pathstr,name,ext] = fileparts(filename)
whereas in your code, there is an attempt to retrieve four
[p n e v] = fileparts(appcfgs{k});
You will need to remove the v parameter from the output list (line 1217 of local_initapps) and check to see how this parameter is used elsewhere in the code.
NOTE I just downloaded SPM8, and the local_initapps function (in the cfg_util.m file) did not have the v parameter
function local_initapps
% add application data
if isdeployed
cfg_mlbatch_appcfg_master;
else
appcfgs = which('cfg_mlbatch_appcfg','-all');
cwd = pwd;
dirs = cell(size(appcfgs));
for k = 1:numel(appcfgs)
% cd into directory containing config file
[p n e] = fileparts(appcfgs{k}); % three output params only
Perhaps try downloading the SPM8 code again to get the correct (most recent?) version. The version info in this file was
% $Id: cfg_util.m 4252 2011-03-15 17:49:51Z volkmar $
Perhaps you are using an older version (?)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Read, Write, and Modify Image in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!