getUserName
Version 1.0.0.0 (1.04 KB) by
Felipe G. Nievinski
Returns the user name or id, as informed by the operating system.
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 (2024). getUserName (https://www.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 LinuxCategories
Find more on Search Path in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired by: Getusername, Get computer name/hostname, whoami: a pedestrian user id retriever
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |