configGliderToolboxPath

PURPOSE ^

CONFIGGLIDERTOOLBOXPATH Configure path to include the glider toolbox.

SYNOPSIS ^

function [glider_toolbox_dir] = configGliderToolboxPath()

DESCRIPTION ^

CONFIGGLIDERTOOLBOXPATH  Configure path to include the glider toolbox.

  Syntax:
    GLIDER_TOOLBOX_DIR = CONFIGGLIDERTOOLBOXPATH()

  Description:
    GLIDER_TOOLBOX_DIR = CONFIGGLIDERTOOLBOXPATH() adds the directory
    containing this function and all its subdirectories to the workspace
    path and returns the full directory path.

  Examples:
    glider_toolbox_dir = configGliderToolboxPath()

  Authors:
    Joan Pau Beltran  <joanpau.beltran@socib.cat>

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

configGliderToolboxPath.m

SOURCE CODE ^

0001 function [glider_toolbox_dir] = configGliderToolboxPath()
0002 %CONFIGGLIDERTOOLBOXPATH  Configure path to include the glider toolbox.
0003 %
0004 %  Syntax:
0005 %    GLIDER_TOOLBOX_DIR = CONFIGGLIDERTOOLBOXPATH()
0006 %
0007 %  Description:
0008 %    GLIDER_TOOLBOX_DIR = CONFIGGLIDERTOOLBOXPATH() adds the directory
0009 %    containing this function and all its subdirectories to the workspace
0010 %    path and returns the full directory path.
0011 %
0012 %  Examples:
0013 %    glider_toolbox_dir = configGliderToolboxPath()
0014 %
0015 %  Authors:
0016 %    Joan Pau Beltran  <joanpau.beltran@socib.cat>
0017 
0018 %  Copyright (C) 2013-2016
0019 %  ICTS SOCIB - Servei d'observacio i prediccio costaner de les Illes Balears
0020 %  <http://www.socib.es>
0021 %
0022 %  This program is free software: you can redistribute it and/or modify
0023 %  it under the terms of the GNU General Public License as published by
0024 %  the Free Software Foundation, either version 3 of the License, or
0025 %  (at your option) any later version.
0026 %
0027 %  This program is distributed in the hope that it will be useful,
0028 %  but WITHOUT ANY WARRANTY; without even the implied warranty of
0029 %  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0030 %  GNU General Public License for more details.
0031 %
0032 %  You should have received a copy of the GNU General Public License
0033 %  along with this program.  If not, see <http://www.gnu.org/licenses/>.
0034 
0035   error(nargchk(0, 0, nargin, 'struct'));
0036 
0037   [glider_toolbox_dir, ~, ~] = fileparts(mfilename('fullpath'));
0038   addpath(genpath(glider_toolbox_dir));
0039 
0040 end

Generated on Fri 06-Oct-2017 10:47:42 by m2html © 2005