MATLAB 帮助中心
List all model terms
Terms = GetAllTerms(Model)
Terms = GetAllTerms(Model) returns a list of all terms in mbcmodel.linearmodel object.
Terms
Model
mbcmodel.linearmodel
example
collapse all
Create a model and find which terms are quadratic in the first input factor.
Create a model.
model = mbcmodel.CreateModel('Polynomial', 2)
model = 1 + 2*X1 + 8*X2 + 3*X1^2 + 6*X1*X2 + 9*X2^2 + 4*X1^3 + 5*X1^2*X2 + 7*X1*X2^2 + 10*X2^3 InputData: [0x2 double] OutputData: [0x1 double] Status: Not fitted Linked to Response: <not linked>
Find which terms are quadratic in the first input factor.
terms = model.Properties.GetAllTerms; x1quadraticterms = find(terms(:,1)==2)
x1quadraticterms = 4 8
Linear model, specified as a mbcmodel.linearmodel object.
Terms in mbcmodel.linearmodel object, returned as an m-by-n array. m is the number of terms. n is the number of factors. The (m,n)th element is the power of the nth factor in the mth term.
Introduced in R2007a
mbcmodel.linearmodel | mbcmodel.linearmodelproperties
mbcmodel.linearmodelproperties
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处