Location: BG_Kr @ 67266b00747a / Knk_matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-04-22 10:31:42+12:00
Desc:
With updated parameters and code
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82c/rawfile/67266b00747a6102220860125ba26f54799fa2f8/Knk_matlab_parameter_fitting/square_error.m

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