Location: BG_TCC @ 57d17a69c40e / Kernik_matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-04-26 13:57:28+12:00
Desc:
Trying fitting with higher membrane capacitance
Permanent Source URI:
https://models.cellml.org/workspace/831/rawfile/57d17a69c40eb0fe6e36c40cfeec2f279abc0e06/Kernik_matlab_parameter_fitting/square_error.m

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