getUserName

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

You are now following this Submission

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://www.mathworks.com/matlabcentral/fileexchange/32523-getusername), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0