getUserName

Returns the user name or id, as informed by the operating system.
904 Downloads
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 (2026). getUserName (https://au.mathworks.com/matlabcentral/fileexchange/32523-getusername), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Search Path in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0