Location: cellLib @ 9915b3b7ab67 / BG_fit / square_error.m

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2021-11-29 10:33:04+13:00
Desc:
Modify the units
Permanent Source URI:
https://models.physiomeproject.org/workspace/6bc/rawfile/9915b3b7ab67814181ffc82e17a7c152d5913065/BG_fit/square_error.m

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