www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcmodel/@linearmodelproperties/GetTermLabel.m
function labs = GetTermLabel(obj, 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' % % See also mbcmodel.linearmodelproperties.GetTermStatus, % mbcmodel.linearmodelproperties.SetTermStatus, % mbcmodel.linearmodelproperties.GetAllTerms, % mbcmodel.linearmodelproperties.GetIncludedTerms % Copyright 2006 The MathWorks, Inc. m = obj.Object; if nargin<2 t = ':'; end labs = GetTermLabel(m,t,varargin{:});