Location: BG_funny @ 5633af28771a / Kernik_matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <sfon036@UoA.auckland.ac.nz>
Date:
2024-11-06 10:52:39+13:00
Desc:
Fixing link
Permanent Source URI:
https://staging.physiomeproject.org/workspace/838/rawfile/5633af28771a655622c1bb62f7c3862b9042e44b/Kernik_matlab_parameter_fitting/square_error.m

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