Question: what is glmfit in matlab?
Answer: Description. b = glmfit(X,y, distr ) returns a (p + 1)-by-1 vector b of coefficient estimates for a generalized linear regression of the responses in y on the predictors in X , using the distribution distr . X is an n-by-p matrix of p predictors at each of n observations.