Location: BG_K_ATP @ 886ed1c35176 / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <sfon036@UoA.auckland.ac.nz>
Date:
2024-11-29 11:50:21+13:00
Desc:
Adding svg
Permanent Source URI:
https://staging.physiomeproject.org/workspace/83a/rawfile/886ed1c3517619809fb82cf77b25631ed35a6025/matlab_parameter_fitting/square_error.m

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