Location: BG_TCC @ 06f090addb49 / Kernik_matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <sfon036@UoA.auckland.ac.nz>
Date:
2024-11-13 10:26:46+13:00
Desc:
Updating cellml and sedml
Permanent Source URI:
https://models.physiomeproject.org/workspace/831/rawfile/06f090addb4968d12531197d463345e0b2012d2a/Kernik_matlab_parameter_fitting/square_error.m

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