fullfile
Build a file path from directory and file components.
Syntax
Section titled “Syntax”f = fullfile(dir1, dir2, ..., filename)Description
Section titled “Description”Concatenates path parts with the platform-specific separator, removing redundant separators. Inverse of fileparts (without the extension split). Use instead of manual [d filesep f] construction.
Examples
Section titled “Examples”fullfile('data', 'raw', 'run.csv')% 'data/raw/run.csv' (Unix) or 'data\\raw\\run.csv' (Windows)