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

    function l = GetTermLabel(m, t, varargin)
%GETTERMLABEL Get a human-readable label for one or more specified terms.
%   The specified terms form a row where each value gives the power of that
%   parameter.
%
%   L = GETTERMLABEL( P )
%   L = GETTERMLABEL( P, TERM )
%   L = GETTERMLABEL( P, TERM, ARGS )
%
%   For example, if a model has four inputs, P,Q,R,S and the order is set
%   to [2 2 2 2], then
%      P.GetTermLabel([0 0 1 2;1 0 1 0] )
%   produces
%      {'R*S^2'; 'P*R'}
%   and
%      P.GetTermLabel( [0 0 1 2;1 0 1 0], 'Format', 'Formula' )
%   produces
%      'R*S^2 + P*R'

%   Copyright 2006 The MathWorks, Inc.

if nargin < 2
    t = ':';
end

% calls the linear model part
l = GetTermLabel(m.linearmodpart, t, varargin{:});