You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
GETCOMPUTERNAME is a very simple but useful function to get your computer name, i.e. the hostname.
Example:
> mycomputer = getComputerName();
Cite As
Manuel Marin (2026). Get computer name/hostname (https://www.mathworks.com/matlabcentral/fileexchange/16450-get-computer-name-hostname), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: getUserName
General Information
- Version 1.1.0.0 (1.26 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
