主要内容

GetIncludedTerms

List included model terms

    Description

    Terms = GetIncludedTerms(Model) returns a list of those terms that will be used to fit the mbcmodel.linearmodel object.

    example

    Examples

    collapse all

    Create a model and find which included terms are quadratic in the first input factor.

    Create a model.

    model = mbcmodel.CreateModel('Polynomial', 2);

    Find which terms are quadratic in the first input factor.

    includedterms = model.Properties.GetIncludedTerms;
    x1quadraticterms = find(includedterms(:,1)==2)
    x1quadraticterms =
    
         4
         8

    Input Arguments

    collapse all

    Linear model, specified as a mbcmodel.linearmodel object.

    Output Arguments

    collapse all

    Terms in mbcmodel.linearmodel object, returned as an m-by-n array. m is the number of included terms. n is the number of factors. The (m,n)th element is the power of the nth factor in the mth included term.

    Version History

    Introduced in R2007a