Get computer name/hostname
Version 1.1.0.0 (1,26 KB) von
Manuel Marin
It provides the computer name where running. Useful for customizing scripts depending on the machine
GETCOMPUTERNAME is a very simple but useful function to get your computer name, i.e. the hostname.
Example:
> mycomputer = getComputerName();
Zitieren als
Manuel Marin (2024). Get computer name/hostname (https://www.mathworks.com/matlabcentral/fileexchange/16450-get-computer-name-hostname), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Erstellt mit
R14SP3
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
Mehr zu Oceanography and Hydrology finden Sie in Help Center und MATLAB Answers
Tags
Quellenangaben
Inspiriert: getUserName
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.1.0.0 | As suggested by some users, insignificant whitespaces are removed. |
||
1.0.0.0 | Summary updated |