Location: BG_Ks @ 3e2973fc7e95 / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-03-07 15:55:11+13:00
Desc:
fix equation for q_mem
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82d/rawfile/3e2973fc7e95561205c84e3977ffb07d2d7f9847/matlab_parameter_fitting/square_error.m

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