Location: BG_TCC @ c896155af6d2 / Kernik_matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <sfon036@UoA.auckland.ac.nz>
Date:
2024-11-29 11:49:21+13:00
Desc:
Adding svg
Permanent Source URI:
https://staging.physiomeproject.org/workspace/831/rawfile/c896155af6d2f305b9268beaf97b5afd38d72400/Kernik_matlab_parameter_fitting/square_error.m

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