Location: BG_Kr @ edc50b777bb6 / Knk_matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-04-20 10:18:45+12:00
Desc:
Fixing number of gate particles and storing in comp environment
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82c/rawfile/edc50b777bb6c5baebe1fa305327727039684579/Knk_matlab_parameter_fitting/square_error.m

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