Location: BG_CaB @ a3c6776ffe29 / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-03-08 10:52:36+13:00
Desc:
RT to R*T
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82a/rawfile/a3c6776ffe29751bc1a039fed56bd57ca24a4a2a/matlab_parameter_fitting/square_error.m

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