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

    %% Modify Value of Tag  

%% 
% Write a sample TIFF file, |mytif.tif|. Create a TIFF object associated
% with this file. 
imdata = peaks(256);
imwrite(imdata,'mytif.tif');
t = Tiff('mytif.tif','r+');  

%% 
% Modify the value of a tag. 
setTag(t,'Software','MATLAB')
rewriteDirectory(t)
close(t);