www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/CreateAFullFilePathOnUNIXExample.m

    %% Create a Full File Path on UNIX
% |fullfile| returns a character vector containing the full path to the
% file. On UNIX(R) platforms, the file seperator character is a
% forward slash (|/|).
f = fullfile('myfolder','mysubfolder','myfile.m')