Hi,
I have downloaded freesurfer-Linux-centos6_x86_64-stable-pub-v5.3.0 and running MATLAB R2015b I get an error message when trying to use load_mgh.
Any tips?
[test, M, mr_parms, volsz] = load_mgh('<path>/<file name>.mgh');
ERROR: problem reading fname SWITCH expression must be a scalar or string constant.
Error in load_mgh (line 158) switch type
(PS! I've tried chancing the file name to just lh.mgh but get the same error message. And the file(s) exist and the path is correct.)
sincerely yours,
Lars M. Rimol, PhD Senior researcher, Norwegian Advisory Unit for functional MRI Department of Radiology, St. Olav's University hospital, 7006 Trondheim, Norway
Hi Lars
if you send me the .mgh file I'll try it out. Can you open it in freeview? Usually that error means the file doesn't exist (or isn't an mgh file)
cheers Bruce
On Sat, 14 Nov 2015, Lars M. Rimol wrote:
Hi,
I have downloaded freesurfer-Linux-centos6_x86_64-stable-pub-v5.3.0 and running MATLAB R2015b I get an error message when trying to use load_mgh.
Any tips?
[test, M, mr_parms, volsz] = load_mgh('<path>/<file name>.mgh');
ERROR: problem reading fname SWITCH expression must be a scalar or string constant.
Error in load_mgh (line 158) switch type
(PS! I've tried chancing the file name to just lh.mgh but get the same error message. And the file(s) exist and the path is correct.)
sincerely yours,
Lars M. Rimol, PhD Senior researcher, Norwegian Advisory Unit for functional MRI Department of Radiology, St. Olav's University hospital, 7006 Trondheim, Norway
freesurfer@nmr.mgh.harvard.edu