Location: BG_Na_background @ 7bd2583315a0 / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-03-29 08:31:39+13:00
Desc:
Fixing units in cellml, and therefore channel density
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82b/rawfile/7bd2583315a0a0f34cae507f0e4dbf4b3799dbe5/matlab_parameter_fitting/square_error.m

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