Ah, that's probably correct. I think it worked on my system because I source the FSL conf file in my .bashrc ________________________________________ From: freesurfer-boun...@nmr.mgh.harvard.edu [freesurfer-boun...@nmr.mgh.harvard.edu] on behalf of Douglas N Greve [gr...@nmr.mgh.harvard.edu] Sent: Tuesday, August 04, 2015 4:45 PM To: freesurfer@nmr.mgh.harvard.edu Subject: Re: [Freesurfer] Using FSL commands through Matlab (Linux)
I don't think that will work because the shell where FSLDIR gets set is not the same shell as that of the system command. Try putting those two in the same string and then running system on that On 08/04/2015 04:36 PM, Albrecht, Daniel S. wrote: > 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=BQIF-g&c=qS4goWBT7poplM69zy_3xhKwEW14JZMSdioCoppxeFU&r=bw42CATdUgaQuKlfBniyB_kCJBdQgH3uC9uSwd5UzJ12A5jbDc-vHb9P3-hkq5C4&m=MIxMSVH7VHFSDpQ8-QJrLgfoMt9e6HC2psPqEbMEK6I&s=Rw2JY9Xtl--NIzjOAN4aCfl_jzhxYbB2ek1lDWBLJAg&e= > > > > > _______________________________________________ > Freesurfer mailing list > Freesurfer@nmr.mgh.harvard.edu > https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.nmr.mgh.harvard.edu_mailman_listinfo_freesurfer&d=BQIF-g&c=qS4goWBT7poplM69zy_3xhKwEW14JZMSdioCoppxeFU&r=bw42CATdUgaQuKlfBniyB_kCJBdQgH3uC9uSwd5UzJ12A5jbDc-vHb9P3-hkq5C4&m=MIxMSVH7VHFSDpQ8-QJrLgfoMt9e6HC2psPqEbMEK6I&s=R14ecFLS9ZZnp4Iz5f4cq2amY9OhDxE6nNnip_1t4KQ&e= -- Douglas N. Greve, Ph.D. MGH-NMR Center gr...@nmr.mgh.harvard.edu Phone Number: 617-724-2358 Fax: 617-726-7422 Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting FileDrop: https://urldefense.proofpoint.com/v2/url?u=https-3A__gate.nmr.mgh.harvard.edu_filedrop2&d=BQIF-g&c=qS4goWBT7poplM69zy_3xhKwEW14JZMSdioCoppxeFU&r=bw42CATdUgaQuKlfBniyB_kCJBdQgH3uC9uSwd5UzJ12A5jbDc-vHb9P3-hkq5C4&m=MIxMSVH7VHFSDpQ8-QJrLgfoMt9e6HC2psPqEbMEK6I&s=lpz9t1_w9lORMfJLhdzVqC7oR6qHD21aZ5p5COeA9x8&e= www.nmr.mgh.harvard.edu/facility/filedrop/index.html Outgoing: https://urldefense.proofpoint.com/v2/url?u=ftp-3A__surfer.nmr.mgh.harvard.edu_transfer_outgoing_flat_greve_&d=BQIF-g&c=qS4goWBT7poplM69zy_3xhKwEW14JZMSdioCoppxeFU&r=bw42CATdUgaQuKlfBniyB_kCJBdQgH3uC9uSwd5UzJ12A5jbDc-vHb9P3-hkq5C4&m=MIxMSVH7VHFSDpQ8-QJrLgfoMt9e6HC2psPqEbMEK6I&s=3swWAORzQCwBZ2nupgWBHZtYtGCjZ06i7r2TrSrX0OE&e= _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.nmr.mgh.harvard.edu_mailman_listinfo_freesurfer&d=BQIF-g&c=qS4goWBT7poplM69zy_3xhKwEW14JZMSdioCoppxeFU&r=bw42CATdUgaQuKlfBniyB_kCJBdQgH3uC9uSwd5UzJ12A5jbDc-vHb9P3-hkq5C4&m=MIxMSVH7VHFSDpQ8-QJrLgfoMt9e6HC2psPqEbMEK6I&s=R14ecFLS9ZZnp4Iz5f4cq2amY9OhDxE6nNnip_1t4KQ&e= 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 https://urldefense.proofpoint.com/v2/url?u=http-3A__www.partners.org_complianceline&d=BQIF-g&c=qS4goWBT7poplM69zy_3xhKwEW14JZMSdioCoppxeFU&r=bw42CATdUgaQuKlfBniyB_kCJBdQgH3uC9uSwd5UzJ12A5jbDc-vHb9P3-hkq5C4&m=MIxMSVH7VHFSDpQ8-QJrLgfoMt9e6HC2psPqEbMEK6I&s=eq8ck_gWk1eEr4vtFYK983ZGcWratQRpVFSRBGkmdMs&e= . 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. _______________________________________________ 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.