You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This routine calculates the median squared error of a linear function, and can be used with fminsearch as a robust linear regression (see help LinearMedianSquaredError).
It should be very easy to extend the example code to handle nonlinear functions and to minimize other error functions (least absolute error, for instance).
Cite As
Will Dwinnell (2026). Linear Median Squared Error (https://www.mathworks.com/matlabcentral/fileexchange/27204-linear-median-squared-error), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (1.61 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
