View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

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




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

| Watch this File

File Information

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

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


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