Location: BG_to_channel @ ad3c483cfbea / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-03-07 16:27:20+13:00
Desc:
fix I_mem
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82e/rawfile/ad3c483cfbea78e59c7f0bd9315c92005f5faa42/matlab_parameter_fitting/square_error.m

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