gusucode.com > symbolic工具箱matlab源码程序 > symbolic/@mupad/private/prependpwd.m

    % prepend the current directory if needed
function file = prependpwd(file)
    [p,~,~] = fileparts(file);
    if isempty(p) || ~isfullpath(p)
        file = fullfile(pwd,file);
    end
end