Location: BG_Ks @ 82152bc96576 / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-03-08 09:55:46+13:00
Desc:
Various formatting changes
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82d/rawfile/82152bc965763c98e280b9008a26b85e171af80a/matlab_parameter_fitting/square_error.m

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