IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
get_rootdir.m
Go to the documentation of this file.
1 %> @file
2 %> @ingroup introspection
3 %> @brief Returns the root directory
4 
5 function s = get_rootdir()
6 a = which('irootlab');
7 if isempty(a)
8  irerror('irootlab.m not found');
9 end;
10 
11 poss = find(a == filesep);
12 
13 s = a(1:(poss(end-1)-1));
function irerror(in s)
function get_rootdir()