File Exchange

image thumbnail


version (1.04 KB) by Felipe G. Nievinski
Returns the user name or id, as informed by the operating system.


Updated 13 Aug 2011

View License

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

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

Cite As

Felipe G. Nievinski (2020). getUserName (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)

manish kumar

Jean Bilheux

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

Jean Bilheux

Peter T. S. DeVore

Works under Linux and Windows 7. Thanks.

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux