Location: BG_fast_Na @ 28bfc8261008 / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <sfon036@UoA.auckland.ac.nz>
Date:
2024-11-08 10:20:25+13:00
Desc:
Adding cellml and sedml
Permanent Source URI:
https://staging.physiomeproject.org/workspace/826/rawfile/28bfc8261008d783e1b5680a7eb017bceb56ffc9/matlab_parameter_fitting/square_error.m

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