Re: [Freesurfer] Freesurfer Digest, Vol 135, Issue 23

2015-05-18 Thread Bruce Fischl
hmmm, we distribute strlen.m, not sure why you don't have it. I'll attach it so you can put it in $FREESURFER_HOME/matlab cheers Bruce On Mon, 18 May 2015, LiuKai wrote: Ok, I ve figured it out: the "strlen" in the code is not a matlab function. Thus I deleted the lines 38-46, then it w

Re: [Freesurfer] Freesurfer Digest, Vol 135, Issue 23

2015-05-18 Thread LiuKai
Ok, I ve figured it out: the "strlen" in the code is not a matlab function. Thus I deleted the lines 38-46, then it works well by just define the fname. Thank you very much!! kai From: li...@hotmail.com To: freesurfer@nmr.mgh.harvard.edu Subject: RE: Freesurfer Digest, Vol 135, Issue 23 Date: Sun

Re: [Freesurfer] Freesurfer Digest, Vol 135, Issue 23

2015-05-17 Thread Bruce Fischl
those are optional - just give it the filename. So it should be: [vol, M, mr_parms] = load_mgh('lh.thickness.fwhm10.fsaverage.mgh then vol will be the 1-based array of thickness values cheers Bruce On Sun, 17 May 2015, LiuKai wrote: All right, I have found the load_mgh functionat  https://s

Re: [Freesurfer] Freesurfer Digest, Vol 135, Issue 23

2015-05-17 Thread LiuKai
All right, I have found the load_mgh function at https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/MghFormat?action=AttachFile&do=view&target=load_mgh.mThank you so much!! But I cannot get a full understand on its usage. In particular, the "fname" option is obvious, but i cannot understand th

Re: [Freesurfer] Freesurfer Digest, Vol 135, Issue 23

2015-05-16 Thread Bruce Fischl
you need to have $FREESURFER_HOME/matlab in your matlab path, then it should work cheers Bruce On Sat, 16 May 2015, LiuKai wrote: Dear Bruce, Thank you so much, i guess this would be exactly what i expected. But could you pls help provide some more information about the "load_mgh" function (ei

Re: [Freesurfer] Freesurfer Digest, Vol 135, Issue 23

2015-05-16 Thread LiuKai
Dear Bruce, Thank you so much, i guess this would be exactly what i expected. But could you pls help provide some more information about the "load_mgh" function (either some links or descriptions are good to me)? Because it's not a default function in matlab and I failed to find a detailed descr