Location: BG_CaB @ ea8b1e77f87e / K_kappa_fitting / square_error.m

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

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