Location: BG_Kr @ f138b490161b / Knk_matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <sfon036@UoA.auckland.ac.nz>
Date:
2024-11-12 11:24:12+13:00
Desc:
Updating cellml and sedml
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82c/rawfile/f138b490161bff04355a6192db8727af23f79e76/Knk_matlab_parameter_fitting/square_error.m

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