Location: BG_TCC @ f9c0bddfc4fb / Clancy_matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-04-28 10:21:44+12:00
Desc:
With new G_GHK from diff Ca concs
Permanent Source URI:
https://models.cellml.org/workspace/831/rawfile/f9c0bddfc4fbc2314cac765c751170f29cd19085/Clancy_matlab_parameter_fitting/square_error.m

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