Location: BG_Na_background @ 9e10b164af10 / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-04-27 10:15:47+12:00
Desc:
Fix G_GHK with KnK conductance
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82b/rawfile/9e10b164af1071d9e3a7aeeb74a87325155d3053/matlab_parameter_fitting/square_error.m

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