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.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ