help
help > RE: Error- Results
May 5, 2016 10:05 AM | Sungho Tak - Wellcome Trust Centre for Neuroimaging, UCL
RE: Error- Results
Dear Liat,
I am sorry that there were bugs in the codes:
spm_fnirs_2dtopo.m and spm_fnirs_con3d.m - incorrect directories were chosen to read *.mat files.
spm_fnirs_roivert.m - incorrect function was called.
The problems were fixed. Please download the attached files, and replace files in a directory of '/spm_fnirs/gen_conimg' with new files.
Best wishes,
Sungho
Originally posted by Liat Levita:
I am sorry that there were bugs in the codes:
spm_fnirs_2dtopo.m and spm_fnirs_con3d.m - incorrect directories were chosen to read *.mat files.
spm_fnirs_roivert.m - incorrect function was called.
The problems were fixed. Please download the attached files, and replace files in a directory of '/spm_fnirs/gen_conimg' with new files.
Best wishes,
Sungho
Originally posted by Liat Levita:
Thank You Sungho.
After emailing you the the file requested, I tried to run again on a different computers, and have now had success a computer running matlab2014b, and all seemed to work for the Results step (which is great, but still don't understand what was the issue before).
However, I now get an error at the last stage - computation of individual contrast images
When I try the computation of 2D contrast images- i get the following error.
>> spm_fnirs_con2d
Error using load
Unable to read file '/Applications/sample_fnirs/stroop/meas/HbO/eeg_128sens.mat'. No such file
or directory.
Error in spm_fnirs_2dtopo (line 42)
load(fullfile(cd, 'eeg_128sens.mat'));
Error in spm_fnirs_con2d (line 18)
[N, interpY] = spm_fnirs_2dtopo(S, fname_c);
Doesn't much make sense (its calling an eeg_128sens.mat file)
When I try computation of the 3D contrast I get the following error
>> spm_fnirs_con3d
Undefined function 'vert_mindist' for input arguments of type 'single'.
Error in spm_fnirs_roivert (line 29)
[xyz, vert] = vert_mindist(xyz_ch(i,:), Mh.vertices, r);
Error in spm_fnirs_con3d (line 24)
vinterp = spm_fnirs_roivert(pos, r);
This I assume is a matlab version issue?
Your help will be much appreciated. Once I get this, the road will be open to do group analysis on SPM with our own data, which will be fantastic.
Thank you for your help in advance.
Regards,
Liat
After emailing you the the file requested, I tried to run again on a different computers, and have now had success a computer running matlab2014b, and all seemed to work for the Results step (which is great, but still don't understand what was the issue before).
However, I now get an error at the last stage - computation of individual contrast images
When I try the computation of 2D contrast images- i get the following error.
>> spm_fnirs_con2d
Error using load
Unable to read file '/Applications/sample_fnirs/stroop/meas/HbO/eeg_128sens.mat'. No such file
or directory.
Error in spm_fnirs_2dtopo (line 42)
load(fullfile(cd, 'eeg_128sens.mat'));
Error in spm_fnirs_con2d (line 18)
[N, interpY] = spm_fnirs_2dtopo(S, fname_c);
Doesn't much make sense (its calling an eeg_128sens.mat file)
When I try computation of the 3D contrast I get the following error
>> spm_fnirs_con3d
Undefined function 'vert_mindist' for input arguments of type 'single'.
Error in spm_fnirs_roivert (line 29)
[xyz, vert] = vert_mindist(xyz_ch(i,:), Mh.vertices, r);
Error in spm_fnirs_con3d (line 24)
vinterp = spm_fnirs_roivert(pos, r);
This I assume is a matlab version issue?
Your help will be much appreciated. Once I get this, the road will be open to do group analysis on SPM with our own data, which will be fantastic.
Thank you for your help in advance.
Regards,
Liat
Threaded View
| Title | Author | Date |
|---|---|---|
| Liat Levita | Apr 15, 2016 | |
| Wenhai Zhang | Aug 19, 2017 | |
| Wenhai Zhang | Aug 19, 2017 | |
| Sungho Tak | Aug 19, 2017 | |
| Wenhai Zhang | Aug 24, 2017 | |
| harleen chhabra | May 5, 2016 | |
| Sungho Tak | May 5, 2016 | |
| harleen chhabra | May 5, 2016 | |
| Wenhai Zhang | Aug 24, 2017 | |
| Sungho Tak | May 5, 2016 | |
| Sungho Tak | Apr 18, 2016 | |
| Liat Levita | May 2, 2016 | |
| Sungho Tak | May 5, 2016 | |
| Liat Levita | May 6, 2016 | |
