Location: BG_CaL @ 01a3738086a8 / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <sfon036@UoA.auckland.ac.nz>
Date:
2024-11-29 11:39:36+13:00
Desc:
Adding svg
Permanent Source URI:
https://staging.physiomeproject.org/workspace/6d7/rawfile/01a3738086a8409b9ea989f65f1b113edad10cb0/matlab_parameter_fitting/square_error.m

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