You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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
General Information
- Version 1.0.0.0 (706 Bytes)
-
No License
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
