Location: BG_to_channel @ c7069969c3a0 / Clancy_matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-04-06 11:33:36+12:00
Desc:
trying to match channel density to Kernik19
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82e/rawfile/c7069969c3a025bf83bc11624a29ca1c4e841896/Clancy_matlab_parameter_fitting/square_error.m

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