Location: BG_funny @ b8ccff21dd7b / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-03-11 10:25:14+13:00
Desc:
Fixing GHK IV fitting bug
Permanent Source URI:
https://staging.physiomeproject.org/workspace/838/rawfile/b8ccff21dd7b1113f081ba69217e597e30f957f0/matlab_parameter_fitting/square_error.m

function result = square_error(vector)
    if ~iscolumn(vector)
        vector = transpose(vector);
    end
    result = transpose(vector)*vector;
end