IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
path_assert.m
Go to the documentation of this file.
1 %> @ingroup globals setupgroup assert
2 %> @file
3 %> @brief Asserts the @c PATH global is present and initialized.
4 %>
5 %> Please check the source code for reference.
6 function path_assert()
7 global PATH;
8 if isempty(PATH)
9  % Default load path in objtool and datatool
10  PATH.data_load = '.';
11  % Default save path in objtool and datatool
12  PATH.data_save = '.';
13  % Default load path in mergetool
14  PATH.data_spectra = '.';
15 
16  % default documentation path
17 % path = get_rootdir();
18 % PATH.doc = fullfile(path, 'doc');
19  PATH.doc = 'http://bioph.lancs.ac.uk/irootdoc';
20 end;
function objtool(in varargin)
function get_rootdir()
function path_assert()