NORMALIZE remove redundant elements of path

normalize(p) remove redundant elements of path p path need not exist, normalized path is returned

Contents

Inputs

Outputs

MEX code is about 4-5x faster than plain Matlab below

function n = normalize(file, backend)
arguments
  file {mustBeTextScalar}
  backend (1,:) string = ["java", "python", "native"]
end

fun = hbackend(backend, "normalize");

n = fun(file);

end