GETHOSTNAME Get host name. HOSTNAME = GETHOSTNAME returns the name of the computer that MATLAB is running on. Function should work for both Linux and Windows. Markus Buehren Last modified 13.11.2007 See also GETUSERNAME.