官方有一个相关说明,https://surfer.nmr.mgh.harvard.edu/fswiki/MatlabRuntime
https://web.stanford.edu/group/vista/cgi-bin/wiki/index.php/FreeSurfer
FreeSurfer in Matlab
In order for Matlab to have access to Freesurfer executables you must do two things:
Start matlab through a terminal.
Add the following lines to your matlab startup.m file.
我没有用这个。
matlab我习惯在windows用,我直接将
freesurfer/matlab/和freesurfer/fsfast/toolbox/两文件夹添加到matlab路径。
、