Location: BG_Kr @ 9ea0182e8cf0 / Knk_matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-04-05 13:51:32+12:00
Desc:
Change channel density to match Kernik
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82c/rawfile/9ea0182e8cf05f4ef75ba7cd9a5c8c5ce2509d49/Knk_matlab_parameter_fitting/square_error.m

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