Location: BG_to_channel @ f52431487711 / parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-02-28 11:28:17+13:00
Desc:
Adding rvdv coefficient (to be checked)
Permanent Source URI:
https://models.cellml.org/workspace/82e/rawfile/f52431487711e51637befc3f8d4ecf2194a35255/parameter_fitting/square_error.m

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