Location: cellLib @ ab5c063dc511 / BG_fit / square_error.m

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-03-18 13:14:41+13:00
Desc:
tune the plot
Permanent Source URI:
https://models.physiomeproject.org/workspace/6bc/rawfile/ab5c063dc5110d2bc68c2abbc8a6b0939c6c1ba1/BG_fit/square_error.m

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