Location: BG_to_channel @ 02fd01e551c3 / Clancy_matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <sfon036@UoA.auckland.ac.nz>
Date:
2024-12-16 10:55:18+13:00
Desc:
Updating vols with LRd values and updating parameters
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82e/rawfile/02fd01e551c328b61438e75bbbbbe2ba86f32b4d/Clancy_matlab_parameter_fitting/square_error.m

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