Code covered by the BSD License  

Highlights from
Total Least Squares Method

image thumbnail

Total Least Squares Method


Ivo Petras (view profile)


19 Apr 2011 (Updated )

Mathematical method known as total least squares or orthogonal regression or error-in-variables.

model(xm, a)
    function [yM] = model(xm, a)
    % Model (linear and nonlinear) definitions
    % for the function numerFminS() as a 'fun'
    % Linear (dataLRM.txt):
    %yM = zeros(2,1);
    % Second degree polynomial (dataNRM.txt):
    yM = zeros(3,1);
    % Power exponet (dataERM.txt):        
    %yM = zeros(2,1);

Contact us