Location: BG_Na_background @ ca113a6d13f3 / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-03-08 10:15:44+13:00
Desc:
Various formatting changes
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82b/rawfile/ca113a6d13f314636a3f1b903f4701d7f7d72ba3/matlab_parameter_fitting/square_error.m

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