Hello- I am new to Freesurfer and Matlab. I have Matlab 7.4.0 installed on an Intel Mac. I just installed Freesurfer. Now when I start Matlab I get the following warnings:
Warning: Name is nonexistent or not a directory: /matlab. In path at 110 In startup at 4 In matlabrc at 255 Warning: Name is non existent or not a directory: /toolbox. In path at 110 In startup at 11 In Matlabrc at 255
I have tried adding the freesurfer folder to these files to the path for matlab, but the error still occurs. Any suggestions on how to get this error to quit?
Thanks! -Robert
Robert,
When freesurfer is first started after installation, it adds some lines to your ~/matlab/startup.m file to add the freesurfer matlab files to the matlab paths. But the way those lines are written now, it assumes that the FREESURFER_HOME environment variable is always set, and doesnt check if it isn't (which would be that case if using matlab without having started the Freesurfer setup).
So, please change your ~/matlab/startup.m file to look like this:
%------------ FreeSurfer -----------------------------% fshome = getenv('FREESURFER_HOME'); fsmatlab = sprintf('%s/matlab',fshome); if (exist(fsmatlab) == 7) path(path,fsmatlab); end clear fshome fsmatlab; %-----------------------------------------------------%
%------------ FreeSurfer FAST ------------------------% fsfasthome = getenv('FSFAST_HOME'); fsfasttoolbox = sprintf('%s/toolbox',fsfasthome); if (exist(fsfasttoolbox) == 7) path(path,fsfasttoolbox); end clear fsfasthome fsfasttoolbox; %-----------------------------------------------------%
The new lines are the 'if' statements which check for the existence of the directories before attempting to add to the path, which is the proper thing to do (and future Freesurfer distributions will contain this fixup).
Nick
On Sat, 2007-05-05 at 08:00 -0600, Robert Baldwin wrote:
Hello- I am new to Freesurfer and Matlab. I have Matlab 7.4.0 installed on an Intel Mac. I just installed Freesurfer. Now when I start Matlab I get the following warnings:
Warning: Name is nonexistent or not a directory: /matlab. In path at 110 In startup at 4 In matlabrc at 255 Warning: Name is non existent or not a directory: /toolbox. In path at 110 In startup at 11 In Matlabrc at 255
I have tried adding the freesurfer folder to these files to the path for matlab, but the error still occurs. Any suggestions on how to get this error to quit?
Thanks! -Robert
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Hello- I had Freesurfer installed correctly on my Intel Mac OS X machine. Everything was working great. I just installed an MSW (MEG) analysis package and also upgraded my Freesurfer install. This has somehow messed up my paths. I am not sure how to fix.
I have the following commands in my .bashrc
export FREESURFER_HOME=/Applications/freesurfer source $FREESURFER_HOME/SetUpFreeSurfer.sh source /Applications/MNEMEG/mne/setup/mne/mne_setup_analysis_sh
When I start X11 terminal I get the following:
-------- freesurfer-Darwin-tiger-i686-stable-pub-v4.0.2 -------- Setting up environment for FreeSurfer/FS-FAST (and FSL) FREESURFER_HOME /Applications/freesurfer FSFAST_HOME /Applications/freesurfer/fsfast FSF_OUTPUT_FORMAT nii SUBJECTS_DIR /Applications/freesurfer/subjects MNI_DIR /Applications/freesurfer/mni
MNE software location set to /Applications/MNEMEG/mne/ MATLAB software location set to /Applications/MNEMEG/mne/matlab
/Applications/MNEMEG/mne//bin/mne added to PATH /sw/bin added to PATH
Note : Remember to set SUBJECTS_DIR and SUBJECT environment variables correctly. Note : FreeSurfer environment is needed to run mne_setup_source_space
trebor: [/opt/msw] trebor $
However, when I try freesurfer commands I get "command not found" such as:
trebor: [/opt/msw] trebor $ tkmedit bash: tkmedit: command not found trebor: [/opt/msw] trebor $
Any assistance getting me back up and running would be appreciated!
Thanks, -Robert
Robert,
You can try putting mne setup before the freesurfer setup, that is, swap the 'source...' lines in your .bashrc.
Nick
On Sat, 2008-03-08 at 11:19 -0700, Robert Baldwin wrote:
Hello- I had Freesurfer installed correctly on my Intel Mac OS X machine. Everything was working great. I just installed an MSW (MEG) analysis package and also upgraded my Freesurfer install. This has somehow messed up my paths. I am not sure how to fix.
I have the following commands in my .bashrc
export FREESURFER_HOME=/Applications/freesurfer source $FREESURFER_HOME/SetUpFreeSurfer.sh source /Applications/MNEMEG/mne/setup/mne/mne_setup_analysis_sh
When I start X11 terminal I get the following:
-------- freesurfer-Darwin-tiger-i686-stable-pub-v4.0.2 -------- Setting up environment for FreeSurfer/FS-FAST (and FSL) FREESURFER_HOME /Applications/freesurfer FSFAST_HOME /Applications/freesurfer/fsfast FSF_OUTPUT_FORMAT nii SUBJECTS_DIR /Applications/freesurfer/subjects MNI_DIR /Applications/freesurfer/mni
MNE software location set to /Applications/MNEMEG/mne/ MATLAB software location set to /Applications/MNEMEG/mne/matlab
/Applications/MNEMEG/mne//bin/mne added to PATH /sw/bin added to PATH
Note : Remember to set SUBJECTS_DIR and SUBJECT environment variables correctly. Note : FreeSurfer environment is needed to run mne_setup_source_space
trebor: [/opt/msw] trebor $
However, when I try freesurfer commands I get "command not found" such as:
trebor: [/opt/msw] trebor $ tkmedit bash: tkmedit: command not found trebor: [/opt/msw] trebor $
Any assistance getting me back up and running would be appreciated!
Thanks, -Robert
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Nick- I knew it had to be something simple. That did the trick. Thanks for your help! -Robert
On 3/9/08 12:27 AM, "Nick Schmansky" nicks@nmr.mgh.harvard.edu wrote:
Robert,
You can try putting mne setup before the freesurfer setup, that is, swap the 'source...' lines in your .bashrc.
Nick
On Sat, 2008-03-08 at 11:19 -0700, Robert Baldwin wrote:
Hello- I had Freesurfer installed correctly on my Intel Mac OS X machine. Everything was working great. I just installed an MSW (MEG) analysis package and also upgraded my Freesurfer install. This has somehow messed up my paths. I am not sure how to fix.
I have the following commands in my .bashrc
export FREESURFER_HOME=/Applications/freesurfer source $FREESURFER_HOME/SetUpFreeSurfer.sh source /Applications/MNEMEG/mne/setup/mne/mne_setup_analysis_sh
When I start X11 terminal I get the following:
-------- freesurfer-Darwin-tiger-i686-stable-pub-v4.0.2 -------- Setting up environment for FreeSurfer/FS-FAST (and FSL) FREESURFER_HOME /Applications/freesurfer FSFAST_HOME /Applications/freesurfer/fsfast FSF_OUTPUT_FORMAT nii SUBJECTS_DIR /Applications/freesurfer/subjects MNI_DIR /Applications/freesurfer/mni
MNE software location set to /Applications/MNEMEG/mne/ MATLAB software location set to /Applications/MNEMEG/mne/matlab
/Applications/MNEMEG/mne//bin/mne added to PATH /sw/bin added to PATH
Note : Remember to set SUBJECTS_DIR and SUBJECT environment variables correctly. Note : FreeSurfer environment is needed to run mne_setup_source_space
trebor: [/opt/msw] trebor $
However, when I try freesurfer commands I get "command not found" such as:
trebor: [/opt/msw] trebor $ tkmedit bash: tkmedit: command not found trebor: [/opt/msw] trebor $
Any assistance getting me back up and running would be appreciated!
Thanks, -Robert
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu