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

    function str = description(exp)
%DESCRIPTION  Create a description string for the object
%
%  STR = DESCRIPTION(M) returns a string that describes the object.  The
%  default string indicates who made the model and when, but specific
%  classes of model may override this behaviour.

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


info = getinfo(exp);
if isfield(info, 'User') && isfield(info, 'Date')
    str = sprintf('Created by %s on %s.', info.User, info.Date);
else
    str = '';
end