There are two files: (1) trainRegressionModel.m, and (2) createfitfig.m The first file creates the regression model (Robust Linear Regression) for the supplied training data. Here is the help file and ...
Examples were tested on MATLAB R2017a in a Windows 7 computer with a 2.5 GHz CPU and 64GB RAM. Requirements: MATLAB R2016b or later; MATLAB Image Processing Toolbox ...