Location: BG_TCC @ 9265915261ea / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-03-03 16:55:15+13:00
Desc:
Add _TCC to Sxy names
Permanent Source URI:
https://models.physiomeproject.org/workspace/831/rawfile/9265915261ea61957a9415b7f5fe7266e11f22d9/matlab_parameter_fitting/square_error.m

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