Location: BG_Kr @ 422d31608d37 / Knk_matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-04-22 10:07:17+12:00
Desc:
Updating stoich matrices to include sqrt(Ko) dependence of g_Kr
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82c/rawfile/422d31608d3701de0cd9f3eca875b2b8d92150cd/Knk_matlab_parameter_fitting/square_error.m

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