Location: BG_TCC @ d640a286065c / Clancy_matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-04-22 13:34:53+12:00
Desc:
Trying to improve GHK fit
Permanent Source URI:
https://models.cellml.org/workspace/831/rawfile/d640a286065c882f10aa045e3ada5ecfa0db3dd8/Clancy_matlab_parameter_fitting/square_error.m

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