rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
rbmatlabhome.m
1 function homestr = rbmatlabhome
2 % function homestr = rbmatlabhome
3 %
4 % function returning the home environment variable pointing to the
5 % RBmatlab-subdirectory
6 
7 % Bernard Haasdonk 21.7.2006
8 
9  %%% the following call is very inefficient, i.e. 1400 calls = 4 sec!!!!
10  %homestr = [fileparts( which('startup_rbmatlab')),filesep];
11 
12  %%% better: environment-variable method: fraction of a second for
13  %1000 calls. good.
14 
15  homestr = getenv('RBMATLABHOME');
16 
17  % homestr = getenv('HOME');
18  % if isequal(homestr(1:3),'C:\')
19  % homestr = [homestr,'sync_lcars'];
20  % end;
21  % homestr = fullfile(homestr,'matlab','RBmatlab');
22 
23 % TO BE ADJUSTED TO NEW SYNTAX
24 %| \docupdate