Location: cellLib @ 1fb1954d66fe / BG_fit / square_error.m

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-05-04 16:46:31+12:00
Desc:
update the readme
Permanent Source URI:
https://models.cellml.org/workspace/6bc/rawfile/1fb1954d66fe1e42d0adacab6b501180d6aef676/BG_fit/square_error.m

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