Location: BG_K_ATP @ fb45139f62b8 / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-03-17 09:03:17+13:00
Desc:
Fix comment
Permanent Source URI:
https://models.physiomeproject.org/workspace/83a/rawfile/fb45139f62b80c97f07d7174391252672309376e/matlab_parameter_fitting/square_error.m

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