ROOT(P) returns the root path of P.
function r = root(p) r = strcat(stdlib.root_name(p), stdlib.root_dir(p)); end
Published with MATLAB® R2025a