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

    %% Determine if Current Directory is the Last Directory  
% Open a |Tiff| object and determine if the current directory is the last
% directory in the file.   

%%  
t = Tiff('example.tif','r');
tf = lastDirectory(t) 

%%
% The current directory is not the last directory in the file.  

%% 
% Close the |Tiff| object. 
close(t)