Location: BG_Na_background @ 5cae3e7be1c5 / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-04-27 10:30:32+12:00
Desc:
Adding mat file containing G_GHK
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82b/rawfile/5cae3e7be1c5bff1b8792d806684517ebce1b991/matlab_parameter_fitting/square_error.m

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