Location: cellLib @ 2845ff8285b8 / BG_fit / square_error.m

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-03-31 10:42:41+13:00
Desc:
Add plot functions
Permanent Source URI:
https://models.physiomeproject.org/workspace/6bc/rawfile/2845ff8285b871631ac52775bf868ce5127508da/BG_fit/square_error.m

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