This function determines and returns the user id
0001 function userid = userid_jd 0002 % 0003 % This function determines and returns the user id 0004 % 0005 str = ''; 0006 % 0007 if strcmp(computer,'PCWIN') || strcmp(computer,'PCWIN64'), % Windows systems 0008 [flag,str] = dos('hostname'); 0009 userid = strtrim(str); 0010 else % UNIX based systems 0011 userid = getenv('USER'); 0012 end