MATLAB Answers


multiple linear regression analysis using regression learner app in matlab

Asked by Aswathi M on 30 Sep 2019
Latest activity Commented on by Aswathi M on 16 Oct 2019
How to get coefficients and constant after doing multiple linear regression analysis in matlab using regression learner app


Sign in to comment.





1 Answer

Answer by Raunak Gupta on 3 Oct 2019
 Accepted Answer

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.

  1 Comment

Sign in to comment.