gusucode.com > vnt工具箱matlab源码程序 > vnt/vntblks/vntmasks/private/privatevntslgetfullfile.m

    function fullFileName = privatevntslgetfullfile(fileName)
%PRIVATEVNTSLGETFULLFILE Get full path of file name for PackNGo. 
%
%    FULLFILENAME = PRIVATEVNTSLGETFULLFILE (FILENAME) Returns the file
%    name with the full path prefixed to it.

%    SS 03-01-11
%    Copyright 2011 The MathWorks, Inc.

% Initialize return.
fullFileName = fileName;

% Form the full filename.
testFileName = fullfile(pwd, fileName);

% Check if file exists.
fileExists = length(dir(testFileName)); 

if fileExists
    fullFileName = testFileName;
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%