normalize(p) remove redundant elements of path p. Does not walk up ".." to be safe. Path need not exist. Does not access physical filesystem.
Published with MATLAB® R2026a