Location: BG_Ks @ 01704d98782f / matlab_parameter_fitting / square_error.m

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

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