title: MATLAB's glmfit vs fitglm
body: <p>I'm trying to perform logistic regression to do classification using MATLAB. There seem to be two different methods in MATLAB's statistics toolbox to build a generalized linear model 'glmfit' and 'fitglm'. I can't figure out what the difference is between the two. Is one preferable over the other?</p>
  
  <p>Here are the links for the function descriptions.</p>
  
  <p><a href="http://uk.mathworks.com/help/stats/glmfit.html" rel="noreferrer">http://uk.mathworks.com/help/stats/glmfit.html</a>
  <a href="http://uk.mathworks.com/help/stats/fitglm.html" rel="noreferrer">http://uk.mathworks.com/help/stats/fitglm.html</a></p>