Location: BG_Ks @ 2bc70f3224d0 / Clancy_matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <sfon036@UoA.auckland.ac.nz>
Date:
2024-11-06 14:08:42+13:00
Desc:
Adding sedml
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82d/rawfile/2bc70f3224d075b396ccc002f76bf509ed2c3021/Clancy_matlab_parameter_fitting/square_error.m

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