www.pudn.com > matlab-unwrapping-algorithms.zip > createfigure.m, change:2009-02-17,size:741b


function createfigure(cdata1) 
%CREATEFIGURE(CDATA1) 
%  CDATA1:  image cdata 
 
%  Auto-generated by MATLAB on 17-Feb-2009 11:08:50 
 
% Create figure 
figure1 = figure('PaperSize',[20.98 29.68]); 
colormap('gray'); 
 
% Create axes 
axes1 = axes('Visible','off','Parent',figure1,'YDir','reverse',... 
    'TickDir','out',... 
    'Position',[0.1765 0.1451 0.6466 0.7772],... 
    'Layer','top',... 
    'DataAspectRatio',[1 1 1],... 
    'CLim',[0 255]); 
% Uncomment the following line to preserve the X-limits of the axes 
% xlim([0.5 300.5]); 
% Uncomment the following line to preserve the Y-limits of the axes 
% ylim([0.5 300.5]); 
box('on'); 
hold('all'); 
 
% Create image 
image(cdata1,'Parent',axes1,'CDataMapping','scaled');