Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Predict top LDA topics of documents

`topicIdx = predict(ldaMdl,documents)`

`topicIdx = predict(ldaMdl,bag)`

`topicIdx = predict(ldaMdl,counts)`

`[topicIdx,score] = predict(___)`

`___ = predict(___,Name,Value)`

`___ = predict(___,`

specifies additional options using one or more name-value pair arguments.`Name,Value`

)