Location: BG_Na_background @ 53a5837355ad / K_kappa_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-02-24 10:10:43+13:00
Desc:
Fixing flux with Am and fixing z
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82b/rawfile/53a5837355ad1d52735d4f9404a579dc390dcdbb/K_kappa_fitting/square_error.m

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