1 function homestr = rbmatlabhome
2 %
function homestr = rbmatlabhome
4 %
function returning the home environment variable pointing to the
5 % RBmatlab-subdirectory
7 % Bernard Haasdonk 21.7.2006
9 %%% the following call is very inefficient, i.e. 1400 calls = 4 sec!!!!
10 %homestr = [fileparts( which(
'startup_rbmatlab')),filesep];
12 %%% better: environment-variable method: fraction of a second
for
15 homestr = getenv(
'RBMATLABHOME');
17 % homestr = getenv(
'HOME');
18 %
if isequal(homestr(1:3),
'C:\')
19 % homestr = [homestr,'sync_lcars
'];
21 % homestr = fullfile(homestr,'matlab
','RBmatlab
');
23 % TO BE ADJUSTED TO NEW SYNTAX