Location: BG_LCC_diadic @ 042f18560cc5 / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <sfon036@UoA.auckland.ac.nz>
Date:
2022-06-03 10:35:17+12:00
Desc:
Init
Permanent Source URI:
https://staging.physiomeproject.org/workspace/891/rawfile/042f18560cc5fe4a8fc07effa3438fafa4df05e0/matlab_parameter_fitting/square_error.m

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