open-discussion > Error using ciftiopen in Matlab
Showing 1-2 of 2 posts
Display:
Results per page:
Jul 22, 2020  02:07 PM | mdelrio
Error using ciftiopen in Matlab
Hi experts,

I'm trying to access the functional connectivity matrix in the HCP_S900_820_rfMRI_MSMAll_groupPCA_d4500ROW_zcorr.dconn.nii file using the ciftiopen command for Matlab - I installed the connectome workbench and downloaded the GIFTI toolbox (http://www.artefact.tk/software/matlab/g...) as per the instructions here (https://wiki.humanconnectome.org/display...), but I am getting the following error

'C:\Users\magda\Documents\Matlab\workbench\bin_windows64' is not recognized as an internal or external command,
operable program or batch file.
Error using xml_parser
Cannot read XML document

Error in gifti_read (line 14)
t = xml_parser(filename);
Error in gifti (line 105)
this = gifti_read(varargin{1},giftistruct);
Error in ciftiopen (line 34)
cifti = gifti([tmpfile '.gii']);

I'm hoping someone might have some idea about how to resolve this!
Aug 4, 2020  08:08 PM | Tim Schaefer - Goethe University Frankfurt, Germany
RE: Error using ciftiopen in Matlab
I do not have Windows, but the error looks like you specified only the path to wb_command, without the wb_command executable/binary, and it wants the path including the executable.

Try 'C:\Users\magda\Documents\Matlab\workbench\bin_windows64\wb_command.exe', or whatever the executable is called under Windows (and ensure the path is correct).