Location: BG_Kr @ 7e58499aefeb / BG_fit_parameters_CC / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-03-07 09:59:45+13:00
Desc:
Renaming channel
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82c/rawfile/7e58499aefeb2162202aeeba006376d21962160a/BG_fit_parameters_CC/square_error.m

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