Location: BG_Ks @ 2ed13fbdcf4c / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-03-16 10:44:14+13:00
Desc:
With doubled channel density, so parameters are new
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82d/rawfile/2ed13fbdcf4c45fe3b6f59931cee31407884cfc8/matlab_parameter_fitting/square_error.m

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