Location: BG_K1_uterine @ 93d9a05c6ccb / parameter_finder / square_error.m

Author:
Shelley Fong <sfon036@UoA.auckland.ac.nz>
Date:
2025-08-12 14:31:13+12:00
Desc:
Adding preliminary gating
Permanent Source URI:
https://staging.physiomeproject.org/workspace/d57/rawfile/93d9a05c6ccb50564486f61c16fd6f86e533876e/parameter_finder/square_error.m

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