Just use either "system" or the exclamation mark and type the FSL commands

________________________________
From: freesurfer-boun...@nmr.mgh.harvard.edu 
[freesurfer-boun...@nmr.mgh.harvard.edu] on behalf of Albrecht, Daniel S. 
[dsalbre...@mgh.harvard.edu]
Sent: Tuesday, August 04, 2015 4:36 PM
To: freesurfer@nmr.mgh.harvard.edu
Subject: [Freesurfer] Using FSL commands through Matlab (Linux)

Hello,

Sorry if this isn’t the right forum for the question, but not sure where to 
direct it.

I’m trying to incorporate some FSL commands into a Matlab script. I’m using a 
Linux machine and running Matlab 7.11.0 (2010b). I tried to access the FSL 
toolbox through Matlab using:

setenv(‘FSLDIR’,’/autofs/cluster/pubsw/2/pubsw/Linux-2-2.3-x86_64/packages/fsl.64bit/5.0.7’)
system(‘${FSLDIR}/etc/fslconf/fsl.sh’)

But received a “permissions denied” error. Is there an easier way to access FSL 
through Matlab?

Thanks,

Daniel S. Albrecht, PhD
Research Fellow in Radiology
Martinos Center for Biomedical Imaging

Massachusetts General Hospital
149 Thirteenth Street, Room 2301
Charlestown, MA 02129
Phone: (617) 643-6748
Fax: (617) 726-7422
dsalbre...@mgh.harvard.edu<https://urldefense.proofpoint.com/v2/url?u=https-3A__owa.partners.org_cvpn_aHR0cHM6Ly9wcm94eS1vd2EucGFydG5lcnMub3Jn_owa_redir.aspx-3FC-3D8A9OJCUaPkOLxUmmjc0-5FcF-2DxdjAP2NEI4aEbq2JpVjitXhs-5FQYjcIRXVbcEtTXWjym0XzqsaDNI.-26URL-3Dmailto-253amarco-2540nmr.mgh.harvard.edu&d=BQMF-g&c=qS4goWBT7poplM69zy_3xhKwEW14JZMSdioCoppxeFU&r=bw42CATdUgaQuKlfBniyB_kCJBdQgH3uC9uSwd5UzJ12A5jbDc-vHb9P3-hkq5C4&m=yoHn5AdM00amaVhhUDcIsepTng10PQv74avERFjQOjY&s=AZluQUJkTWvBcj436QwnI3ZFMSgR88-C7ONrBVTUuBQ&e=>
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

Reply via email to