Location: BG_Na_background @ d10d16543cb4 / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-03-07 16:00:37+13:00
Desc:
fix I_mem
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82b/rawfile/d10d16543cb42b7b0cda46f8adabf3a28450866b/matlab_parameter_fitting/square_error.m

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