f = fullfile('dir1', 'dir2', ..., 'filename') %fullfile构成地址字符串; 如:输入:f = fullfile('C:','Applications','matlab','fun.m')