Re: [Freesurfer] mri_vol2surf Matlab Function

2015-11-11 Thread Fatemeh.Molaei-Vaneghi
Thank you for taking the time and responding. I managed to correct my shell script, and now it works! I would guess running shell scripts from Matlab is generally not a good idea. Best, Fatemeh ___ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.ed

Re: [Freesurfer] mri_vol2surf Matlab Function

2015-11-11 Thread Douglas Greve
mri_vol2surrf operates on volumetric data. If your data is not volumetric, then you can't use it. If it is volumetric but not stored on disk in a volume format (eg, nii. mgz), then you cannot use it directly. If you can write out your data in such a format, then you can use it. On 11/11/15 6

Re: [Freesurfer] mri_vol2surf Matlab Function

2015-11-11 Thread Fatemeh.Molaei-Vaneghi
What is saved in Matlab cell arrays is simply volumetric SPM data for different subjects, ROIs, and etc. For example I have "data {subject no.,contrast no.}{roi, hemisphere}" which is a 2D cell with each cell being a cell too. What I want is run mri_vol2surf for each of these subjects, each of t

Re: [Freesurfer] mri_vol2surf Matlab Function

2015-11-10 Thread Douglas N Greve
Are you saying that you have the actual surface data stored as an array in matlab or just the filename pointing to the surface data. The routine that you have there will not work because mri_vol2surf is a linux command. However, you can run linux commaand from matlab using the matlab "system" c

Re: [Freesurfer] mri_vol2surf Matlab Function

2015-11-10 Thread Fatemeh.Molaei-Vaneghi
Dear Douglas, Thanks for your reply. The reason I want to use mri_vol2surf in Matlab is that I have a huge dataset saved in cell arrays of Matlab i.e. multiple subjects, multiple datasets for each subject, multiple ROIs for each of these datasets, multiple surfaces for each of these ROIs, and e

Re: [Freesurfer] mri_vol2surf Matlab Function

2015-11-10 Thread Douglas N Greve
why do you need to do it in matlab? Why not use a shell script (tcsh, sh, python, etc)? If you run it with --help, it will give you info on how to run it. On 11/10/2015 12:56 PM, Fatemeh.Molaei-Vaneghi wrote: > Dear FreeSurfers, > > I am using "mri_vol2surf" to map my SPM processed t images onto