Location: BG_Na_background @ f68e42b28106 / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-03-28 15:53:28+13:00
Desc:
With channel density checked using patch clamp against kinetic model
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82b/rawfile/f68e42b28106372fdbc35294f42e9a3984bf0a9b/matlab_parameter_fitting/square_error.m

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