rbmatlab 0.10.01
|
00001 function homestr = rbmatlabhome 00002 % function homestr = rbmatlabhome 00003 % 00004 % function returning the home environment variable pointing to the 00005 % RBmatlab-subdirectory 00006 00007 % Bernard Haasdonk 21.7.2006 00008 00009 %%% the following call is very inefficient, i.e. 1400 calls = 4 sec!!!! 00010 %homestr = [fileparts( which('startup_rbmatlab')),filesep]; 00011 00012 %%% better: environment-variable method: fraction of a second for 00013 %1000 calls. good. 00014 00015 homestr = getenv('RBMATLABHOME'); 00016 00017 % homestr = getenv('HOME'); 00018 % if isequal(homestr(1:3),'C:\') 00019 % homestr = [homestr,'sync_lcars']; 00020 % end; 00021 % homestr = fullfile(homestr,'matlab','RBmatlab'); 00022 00023 % TO BE ADJUSTED TO NEW SYNTAX 00024 %| \docupdate