Location: BG_K_ATP @ 32803a860ae9 / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-03-16 14:51:20+13:00
Desc:
Init
Permanent Source URI:
https://models.physiomeproject.org/workspace/83a/rawfile/32803a860ae9213f139af3d11559db3c09f57cee/matlab_parameter_fitting/square_error.m

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