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