Location: cellLib @ 02b30b08f977 / BG_fit / square_error.m

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-05-02 16:33:26+12:00
Desc:
Add plot title
Permanent Source URI:
https://models.cellml.org/workspace/6bc/rawfile/02b30b08f977dc76540b9907cf27883a7d57dc8b/BG_fit/square_error.m

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