Location: BG_to_channel @ 7f22a2b26a74 / Clancy_matlab_parameter_fitting / square_error.m

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

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