LSF

LSF. (Formerly LSFR)

Documentation
Least-Squares Fitting (LSF) calculations are required for all Undergraduate Lab Experiments.

Download
The LSFR MATLAB program and associated files including documentation PDF can be downloaded from the Project Jennifer Dropbox.

(URL: https://www.dropbox.com/sh/z5zul90ck2u6b1j/tqfL0calNP)

History of the Old and Infamous lsfr26.m
The School of Physics and Astronomy used to provide (and still does provide) a Least-Squares Fitting Routine MATLAB package. It is terrible. Here are some reasons why: So we built a better one. Here is a list of good things about the new one:
 * The old script was labourious to use. The user had to click about 8 different buttons just to get an answer.
 * The old script was GUI based, and could not be used in a script to create automated data-processing tools.
 * The old script was over 1666 lines long. Was the 666 a deliberate joke? It was difficult to understand how it worked. Even able students were not able to understand and modify it for their own purposes.
 * As a result, many just hoped it worked and didn't learn anything from it.
 * There may have been a bug in the old script which returned the wrong result for the intercept uncertainty value. This isn't yet confirmed, as of 2014-02-11.