Location: cellLib @ e653d60e211e / BG_fit / square_error.m

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-04-13 16:28:32+12:00
Desc:
Add Matlab scripts to build cellML models
Permanent Source URI:
https://models.fieldml.org/workspace/6bc/rawfile/e653d60e211e14e8a4b552af1bc280317474fe43/BG_fit/square_error.m

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