Location: BG_to_channel @ 950b3b004fb4 / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-03-22 15:21:27+13:00
Desc:
Updating channel density to literature value (Fedida91)
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82e/rawfile/950b3b004fb4e23b7a4177d7aaf1d7ec8062b261/matlab_parameter_fitting/square_error.m

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