Getusername

Fetches the current user name.

You are now following this Submission

PURPOSE:
This MATLAB mex function fetches the name of the current user. The function is only for windows operating system. It was tested for MATLAB release 12.1 running under windows 12.1

COMPILE AND LINK AS A MATLAB MEX DLL:

type
mex getusername.c

on MATLAB command prompt to compile and link the program as a MATLAB mex dll.

CALLING SYNTAX
The resulting file getusername.dll may be called just like a MATLAB m-file function with syntax:

[username] = getusername

without any input arguments.

Cite As

Mohammad Ashfaq (2026). Getusername (https://www.mathworks.com/matlabcentral/fileexchange/3690-getusername), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: getUserName

Categories

Find more on Develop Apps Using App Designer in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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