Introduction - If you have any usage issues, please Google them yourself
Using matlab functional file: function r = ksrlin (x, y, h, N). Used for local linear fitting, x, y as independent, dependent variable, h is the kernel estimator of bandwidth, N is the data the number of points.