help > Denoising Error
Showing 1-4 of 4 posts
Display:
Results per page:
Apr 17, 2026  09:04 PM | Jeff Browndyke
Denoising Error

I keep on running into a reproducible issue with the new CONN version (25.b) using MATLAB 2025.  It crops up when I try to rerun denosing procedures or applying denoising to new ROIs.  

Any ideas on what might be happening?  Essentially, once I see this error, I can no longer add ROIs to a CONN study file.



Step 4/6: Denoising ROI data

Regression : White Matter (5P) (5 dimensions; no polynomial expansion; no temporal expansion; non-filtered; session-specific)
Regression : CSF (5P) (5 dimensions; no polynomial expansion; no temporal expansion; non-filtered; session-specific)
Regression : realignment (12P) (6 dimensions; no polynomial expansion; added first-order derivative; non-filtered; session-specific)

Regression : scrubbing (413P) (413 dimensions; no polynomial expansion; no temporal expansion; non-filtered; session-specific)
Regression : Effect of base (2P) (1 dimensions; no polynomial expansion; added first-order derivative; non-filtered; session-specific)
Regression : Effect of 9mos (2P) (1 dimensions; no polynomial expansion; added first-order derivative; non-filtered; session-specific)
Regression : Effect of 18mos (2P) (1 dimensions; no polynomial expansion; added first-order derivative; non-filtered; session-specific)
Order : Regression followed by filtering (RegBP)
Detrending : 1
Despiking : 0
Bandpass : [0.008 0.09]

ERROR DESCRIPTION:

Error using cellfun
Input #2 expected to be a cell array, was double instead.

Error in conn_process (line 2015)
enames=cellfun(@(nroi)arrayfun(@(n)sprintf('%s_%d',names{nroi},n),1:size(data{nroi},2),'uni',0),1:numel(data),'uni',0);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in conn_process (line 69)
case {'preprocessing_gui','denoising_gui'}, conn_disp(['CONN: RUNNING DENOISING STEP']); conn_process([1.5,2,6:9],varargin{:});
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in conn (line 7909)
conn_process('denoising_gui'); ispending=false;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in conn_menumanager (line 125)
feval(CONN_MM.MENU{n0}.callback{n1}{1},CONN_MM.MENU{n0}.callback{n1}{2:end});
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
CONN25.b
SPM25 + DAiSS DEM FieldMap MEEGtools cat12
Matlab v.2025b
project: CONN25.b
storage: 2512.0Gb available

Apr 22, 2026  09:04 PM | Yann Quide
RE: Denoising Error

Hi Jeff, Alfonso and other users,


We receive the same error using Matlab r2022a, as mentioned in our earlier messsage.


The error message below is when testing with SPM12, but we received the same message when using SPM25.01.02 and SPM26.0.rc01.


Is there something in particular to change to be able to fix this?


Many thanks in advance,


Yann


 


ERROR DESCRIPTION:
 
Error using cellfun
Input #2 expected to be a cell array, was double instead.


 


Error in conn_process (line 2015)
 enames=cellfun(@(nroi)arrayfun(@(n)sprintf('%s_%d',names{nroi},n),1:size(data{nroi},2),'uni',0),1:numel(data),'uni',0);


 


Error in conn_process (line 69)
 case {'preprocessing_gui','denoising_gui'}, conn_disp(['CONN: RUNNING DENOISING STEP']); conn_process([1.5,2,6:9],varargin{:});


 


Error in conn (line 7909)
 conn_process('denoising_gui'); ispending=false;


 


Error in conn_menumanager (line 125)
 feval(CONN_MM.MENU{n0}.callback{n1}{1},CONN_MM.MENU{n0}.callback{n1}{2:end}); 
CONN25.b
SPM12 + AAL3 DAiSS DEM FieldMap MEEGtools TFCE cat12 suit
Matlab v.2022a
project: CONN25.b
storage: 5143.7Gb available


Originally posted by Jeff Browndyke:



I keep on running into a reproducible issue with the new CONN version (25.b) using MATLAB 2025.  It crops up when I try to rerun denosing procedures or applying denoising to new ROIs.  

Any ideas on what might be happening?  Essentially, once I see this error, I can no longer add ROIs to a CONN study file.



Step 4/6: Denoising ROI data

Regression : White Matter (5P) (5 dimensions; no polynomial expansion; no temporal expansion; non-filtered; session-specific)
Regression : CSF (5P) (5 dimensions; no polynomial expansion; no temporal expansion; non-filtered; session-specific)
Regression : realignment (12P) (6 dimensions; no polynomial expansion; added first-order derivative; non-filtered; session-specific)

Regression : scrubbing (413P) (413 dimensions; no polynomial expansion; no temporal expansion; non-filtered; session-specific)
Regression : Effect of base (2P) (1 dimensions; no polynomial expansion; added first-order derivative; non-filtered; session-specific)
Regression : Effect of 9mos (2P) (1 dimensions; no polynomial expansion; added first-order derivative; non-filtered; session-specific)
Regression : Effect of 18mos (2P) (1 dimensions; no polynomial expansion; added first-order derivative; non-filtered; session-specific)
Order : Regression followed by filtering (RegBP)
Detrending : 1
Despiking : 0
Bandpass : [0.008 0.09]

ERROR DESCRIPTION:

Error using cellfun
Input #2 expected to be a cell array, was double instead.

Error in conn_process (line 2015)
enames=cellfun(@(nroi)arrayfun(@(n)sprintf('%s_%d',names{nroi},n),1:size(data{nroi},2),'uni',0),1:numel(data),'uni',0);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in conn_process (line 69)
case {'preprocessing_gui','denoising_gui'}, conn_disp(['CONN: RUNNING DENOISING STEP']); conn_process([1.5,2,6:9],varargin{:});
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in conn (line 7909)
conn_process('denoising_gui'); ispending=false;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in conn_menumanager (line 125)
feval(CONN_MM.MENU{n0}.callback{n1}{1},CONN_MM.MENU{n0}.callback{n1}{2:end});
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
CONN25.b
SPM25 + DAiSS DEM FieldMap MEEGtools cat12
Matlab v.2025b
project: CONN25.b
storage: 2512.0Gb available



 

Apr 23, 2026  01:04 PM | Jeff Browndyke
RE: Denoising Error

Hi, Yann.


I'm not sure what we did, but we found this issue 'fixed itself' when we re-ran the denoising procedure under MATLAB 2023b and CONN 22.a.  Afterwards, the study file opens fine under MATLAB 2025b and CONN 25b. 


Sorry I can't be more informative, but it appears possibly that this bug is related to how MATLAB/CONN handle the addition of new ROIs to an established study file.


Warm regards,
Jeff

Apr 29, 2026  06:04 AM | Yann Quide
RE: Denoising Error

Thanks Jeff!


I will give this a try, but it does not feel like a sustainable, long term solution.


Would be great to see if there is any actual fix to this!?


Cheers,


Yann