function h = homedir() if ispc() h = getenv("USERPROFILE"); else h = getenv("HOME"); end end
Published with MATLAB® R2025a