Location: BG_to_channel @ 026f4e1b7018 / Kernik_matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-05-04 10:41:02+12:00
Desc:
Updating G_GHK from updating Ki conc
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82e/rawfile/026f4e1b7018764f466eaa26b84c112c1c3de7df/Kernik_matlab_parameter_fitting/square_error.m

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