Location: BG_Ks @ 71243addcc2d / matlab_parameter_fitting / square_error.m

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

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