Version 188.8.131.52 (14.7 KB) by Felipe G. Nievinski
Robust fit of simple linear regression model (ignoring NaNs).
Updated 23 Apr 2014
Simplest outlier-robust alternative to polyfit(x,y,1)
Felipe G. Nievinski (2023). rfitslm (https://www.mathworks.com/matlabcentral/fileexchange/46331-rfitslm), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform CompatibilityWindows macOS Linux
Find more on Linear and Nonlinear Regression in Help Center and MATLAB Answers
Inspired by: Theil–Sen estimator
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.