Home > bioelectromagnetism > eeg_toolbox_path.m

eeg_toolbox_path

PURPOSE ^

eeg_toolbox_path - locate the eeg_toolbox installation path

SYNOPSIS ^

function [eegPath] = eeg_toolbox_path

DESCRIPTION ^

 eeg_toolbox_path - locate the eeg_toolbox installation path

 [eegPath] = eeg_toolbox_path

 This function looks for the installation path of
 eeg_toolbox.m in the matlab path.  If not 
 found, update the matlab path (try addpath).

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [eegPath] = eeg_toolbox_path
0002 
0003 % eeg_toolbox_path - locate the eeg_toolbox installation path
0004 %
0005 % [eegPath] = eeg_toolbox_path
0006 %
0007 % This function looks for the installation path of
0008 % eeg_toolbox.m in the matlab path.  If not
0009 % found, update the matlab path (try addpath).
0010 %
0011 
0012 
0013 % $Revision: 1.2 $ $Date: 2005/08/14 21:20:00 $
0014 
0015 % Licence:  GNU GPL, no implied or express warranties
0016 % History:  12/2003, Darren.Weber_at_radiology.ucsf.edu
0017 %
0018 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0019 
0020 eegPath = fileparts(which('eeg_toolbox'));
0021 if isempty(eegPath),
0022     msg = sprintf('Cannot find eeg_toolbox on the matlab path.\nPlease use the addpath command.\n\n');
0023     error(msg);
0024 else
0025     eegPath = strcat(eegPath,filesep);
0026 end
0027 
0028 return

Generated on Mon 15-Aug-2005 15:36:19 by m2html © 2003