Location: BG_LCC_diadic @ 811cbd9176a1 / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <sfon036@UoA.auckland.ac.nz>
Date:
2022-07-07 11:10:27+12:00
Desc:
Update readme
Permanent Source URI:
https://staging.physiomeproject.org/workspace/891/rawfile/811cbd9176a1dcddd93f0a389a5d99a75ce0523d/matlab_parameter_fitting/square_error.m

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