function [n, cmd] = hostname() cmd = 'hostname'; [s, n] = system(cmd); if s == 0 n = strip(n); else n = ''; end end
Published with MATLAB® R2025a