Location: BG_to_channel @ c2ea2cd599f0 / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-03-03 17:11:14+13:00
Desc:
Add _TCC to Sxy names
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82e/rawfile/c2ea2cd599f06e48d7c237060aab8b7b240c11c9/matlab_parameter_fitting/square_error.m

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