www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@mdev_local/print.m

    function OK=print(md,h)
%PRINT Generic print function for mdev_local objects
%
%  OK = PRINT(MDEV, MBH)

%  Copyright 2000-2010 The MathWorks, Inc. and Ford Global Technologies, Inc.


View= h.GetViewData;


% Create a modelpane and use its printing mechanism to generate the model description axes
tempFig = xregfigure('Visible', 'off');
mview = xregMdlGui.localmodelpane('Parent', tempFig);

ms = View.MessageService;
if ms.Status 
    % summary stats
    s = mle_stats(md);
    Pooled_RMSE = sqrt(s.Pooled_MSE);
    mview.Pooled_RMSE = Pooled_RMSE;
    mview.setModelInformation(ms.Model, fullname(md));
    
    tH = mview.printcopy(tempFig);
    set(tH, 'Position', [1 1 mview.printSize]);
    
    aH = View.printAxes;
    printlayout1(aH,tH,fullname(md));
end
delete(tH);
delete(tempFig);