userid_jd

PURPOSE ^

SYNOPSIS ^

function userid = userid_jd

DESCRIPTION ^

 This function determines and returns the user id

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Community support and wiki are available on Redmine. Last update: 18-Apr-2019.