help > Error using cellfun
Showing 1-4 of 4 posts
Display:
Results per page:
Sep 13, 2026  10:09 AM | Francesc Xavier Aymerich
Error using cellfun

Dear users,


I have found an error when processing (apply and continue from denoising & Quality control)


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 7931)
 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
Matlab v.2026a


Please help me. I can't continue with the analysis


Best regards,


Xavier

Sep 19, 2026  11:09 AM | Spencer Upton - University of Missouri, Columbia
RE: Error using cellfun

I am having this same issue. 

Sep 19, 2026  02:09 PM | Spencer Upton - University of Missouri, Columbia
RE: Error using cellfun

Here is a link to the solution.


Forum

https://www.nitrc.org/forum/forum.php?th... Click or tap if you trust this link." href="https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.nitrc.org%2Fforum%2Fforum.php%3Fthread_id%3D15994%26forum_id%3D1144&data=05%7C02%7Cuptons%40missouri.edu%7C9bf75302ea2a4e8d5d9c08df1653a389%7Ce3fefdbef7e9401ba51a355e01b05a89%7C0%7C0%7C639254220612353269%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=2B24BSl4dZbg%2FTm%2BjkO4uixEfnH2NqkWn1SybzKSGTo%3D&reserved=0" target="_blank" rel="noopener noreferrer" data-auth="NotApplicable" data-linkindex="0">(https://www.nitrc.org/forum/forum.php?th...)

 

Code link

https://github.com/alfnie/conn/blob/mast... Click or tap if you trust this link." href="https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Falfnie%2Fconn%2Fblob%2Fmaster%2Fconn_process.m&data=05%7C02%7Cuptons%40missouri.edu%7C9bf75302ea2a4e8d5d9c08df1653a389%7Ce3fefdbef7e9401ba51a355e01b05a89%7C0%7C0%7C639254220612375819%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=IMYDvIGI23uQTKQ3u41v9NV%2BhUKqROWhQAikB7KrYPs%3D&reserved=0" target="_blank" rel="noopener noreferrer" data-auth="NotApplicable" data-linkindex="1">(https://github.com/alfnie/conn/blob/mast...)
  Edited (Sep 19, 2026  03:09 PM)
Sep 21, 2026  08:09 AM | Francesc Xavier Aymerich
RE: Error using cellfun

Hi Spencer,


Thanks for your reply. I solved it updating the conn_process.m file from github repository. In the new version arrayfun function was used instead cellfun and it works


Xavier