image thumbnail


version (14.7 KB) by Felipe G. Nievinski
Robust fit of simple linear regression model (ignoring NaNs).


Updated 23 Apr 2014

View License

Simplest outlier-robust alternative to polyfit(x,y,1)

Cite As

Felipe G. Nievinski (2022). rfitslm (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: Theil–Sen estimator

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!