Location: BG_Kr @ d0ecd7a7b4fe / matlab_parameter_finding / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-03-28 16:32:01+13:00
Desc:
With channel density checked using patch clamp against kinetic model, and G_GHK fitted better
Permanent Source URI:
http://models.cellml.org/workspace/82c/rawfile/d0ecd7a7b4fe4b853db2483ffff2089a214e65c8/matlab_parameter_finding/square_error.m

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