Hi Freesurfer Experts,

Currently, I am using these command excited in Matlab to extract the coordinates of volume.

mri = MRIread('aseg.mgz');
pos = find(mri.vol == 17 | mri.vol == 53);
[i,j,k] = ind2sub(mri.volsize,pos);

I would like to run these command in the Freesurfer itself rather than using Matlab. Can I do that? Which command are qual?

Best Wishes,
Aziz