cleanpath(path_name, working_path)
cleanpath(path_name, working_path)

cleanpath(path_name​, working_path)

Clean file path names removing redundant characters as well as circular paths

Download
Download

You are now following this Submission

Cite As

Marco Bucci (2026). cleanpath(path_name, working_path) (https://in.mathworks.com/matlabcentral/fileexchange/59771-cleanpath-path_name-working_path), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0

The internal RELATIVEPATH function should now working correctly. I can remove totally as well as partially the working directory path from the absolute path.

Download
1.1.0

previous upload failed

Download
1.0.0

Download