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

    function out= yinfo(m,yi)
%YINFO yinfo structure access
%
% yi = yinfo(m);     gets info
% m  = yinfo(m,yi);  sets info
%   yi is a structure fields 'Name','Units','Symbol'.

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

if nargin==1
   out= yinfo(m.Output);
else
    out = setOutput(m,yinfo(getOutput(m),yi));
end