Location: BG_CaB @ d33e586ab15b / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <sfon036@UoA.auckland.ac.nz>
Date:
2022-07-06 16:23:50+12:00
Desc:
Updating to LRd 34.4 pL cell parameters
Permanent Source URI:
https://models.cellml.org/workspace/82a/rawfile/d33e586ab15b1eb2c6735d895af7fa69b3ef0a34/matlab_parameter_fitting/square_error.m

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