Location: BG_to_channel @ c4efcd3ba9fd / Clancy_matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-04-22 15:58:29+12:00
Desc:
Changing units to s for alpha and beta gate parameters and fitting with added tau offsets for both gates
Permanent Source URI:
https://models.physiomeproject.org/workspace/82e/rawfile/c4efcd3ba9fd349cf0ebf5cbf24abf3ec1f4e557/Clancy_matlab_parameter_fitting/square_error.m

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