www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xregmodel/details.m

    function out = details(m,option,VarName)
%DETAILS details of model
%
%   str=details(m,'plainview')
%     outputs a plain formatted cell array of strings describing the input model
%   str=details(m,'texview')
%     outputs a TeX formatted cell array of strings
%   figH=details(m,'View',[VarName])
%     Instead of returning the string representation details formats and displays the
%     information onto a figure and returns the handle.
%     Adding the optional VarName to the input arguments labels the plot

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


if nargin < 3
    VarName= 'Y';
    if nargin < 2
        option = 'plainview';
    end
end

% Call appropriate method
try
    out= feval(option,m,VarName);
catch
    error(message('mbc:xregmodel:InvalidArgument4'))
end