Dear Alfonso,
There is a bug in the recent few versions of conn on adding a new dyn-ICA analysis to a project with an existing dyn-ICA analysis. The following error is displayed:
Subscripted assignment between dissimilar structures.
Error in conn_batch (line 1630)
CONN_x.dynAnalyses(ianalysis)=struct(...
Error in conn (line 7216)
case 'dyn-ICA',
conn_batch('dynAnalysis.name',tnames,'dynAnalysis.sources',{},'dynAnalysis.factors',20,'dynAnalysis.window',30);
conn_process('analyses_dynsetup',tnames);
conn('gui_analysesgo',3);
CONN22.a
SPM12 + DAiSS DEM FieldMap MEEGtools
Matlab v.2023b
project: CONN20.b
storage: 1184.9Gb available
I found the bug here (line 1630):
CONN_x.dynAnalyses(ianalysis)=struct(...
'name','DYN_01',...
'regressors', struct('names',{{}}),...
'variables', struct('names',{{}}),...
'Ncomponents',20,...
'condition',[],...
'analyses',3,...
'window',30,...
'output',[1 1 0]);
and here's the patch for it.
CONN_x.dynAnalyses(ianalysis)=struct(...
'name','DYN_01',...
'regressors', struct('names',{{}}),...
'variables', struct('names',{{}}),...
'Ncomponents',20,...
'condition',[],...
'analyses',3,...
'window',30,...
'output',[1 1 0],...
'sources',[]);
Thanks and regards,
Shukti
