MATLAB: Multiple linear regression analysis using regression learner app in matlab

MATLABregression

How to get coefficients and constant after doing multiple linear regression analysis in matlab using regression learner app

Best Answer

Hi,
You may refer to the Export Regression Model Step of training a Linear Regression Model. This will store the variables containing the parameters into MATLAB Workspace. Information regarding coefficients and constant will be stored in trainedModel.LinearModel.Coefficients field in the trainedModel variable. This format is only valid if Linear Regression method is used in the Regression Learner App. Different kinds of parameters will come into picture if some other algorithm is used such as Regression Trees, Support Vector Machines etc.