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

    function str = ResponseLabel(yi,Trans)
%RESPONSELABEL
%
%  str= ResponseLabel(m,Trans)

%  Copyright 2007 The MathWorks, Inc. 

if nargin<2
    Trans = false;
end


strj= yi.Symbol;

uct= char(yi.Units);

if ~isempty(yi.Name) && ~strcmp(strj, yi.Name) ;
	strj = [yi.Name ' (',strj,')'];
end
if ~isempty(uct) && ~strcmp(uct,'?')
	strj = [strj ' [' uct ']'];
end

if nargin>1 && Trans
    strj= [strj ' (Transformed)'];
end
str= strj;