Alex
Alex

Reputation: 15708

How to get help on a class' method

How do you get help for a class method/function when there are other functions of the same name?

For example, the predict method/function works for both TreeBagger and GeneralizedLinearModel class.

How do I get the respective helpfiles for these functions using doc, as currently doc predict returns the help for the CompactClassificationTree class?

Upvotes: 0

Views: 32

Answers (1)

NNN
NNN

Reputation: 36

http://www.mathworks.com/help/stats/treebagger.predict.html

http://www.mathworks.com/help/stats/generalizedlinearmodel.predict.html

predict is a method of each class. You can also call it like myTreeBagger.predict(data)

Upvotes: 1

Related Questions