Code covered by the BSD License  

Highlights from
getUserName

5.0

5.0 | 3 ratings Rate this file 25 Downloads (last 30 days) File Size: 1.04 KB File ID: #32523

getUserName

by

 

Returns the user name or id, as informed by the operating system.

| Watch this File

File Information
Description

The code is trivial but worth having as a separate function.

Works under Windows and Linux, presumably also under modern Mac.

Acknowledgements

Getusername, Get Computer Name/Hostname, and Whoami: A Pedestrian User Id Retriever inspired this file.

MATLAB release MATLAB 7.9 (R2009b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
31 Jan 2014 Jean Bilheux

Works on Mac. Simple as you said but very useful to get.

31 Jan 2014 Jean Bilheux  
30 Dec 2012 Peter T. S. DeVore

Works under Linux and Windows 7. Thanks.

Contact us