https://nl.mathworks.com/help/stats/glmfit.html
glmfit - Fit generalized linear regression model - MATLAB
This MATLAB function returns a vector b of coefficient estimates for a generalized linear regression model of the responses in y on the predictors in X, using...
linear regressionfitgeneralizedmodelmatlab