title: How to get help on a class' method
body: <p>How do you get help for a class method/function when there are other functions of the same name?</p>
  
  <p>For example, the <code>predict</code> method/function works for both <a href="http://au.mathworks.com/help/stats/treebagger-class.html" rel="nofollow">TreeBagger</a> and <a href="http://au.mathworks.com/help/stats/generalized-linear-regression-1.html" rel="nofollow">GeneralizedLinearModel</a> class.</p>
  
  <p>How do I get the respective helpfiles for these functions using <code>doc</code>, as currently <code>doc predict</code> returns the help for the <code>CompactClassificationTree</code> class?</p>