Location: BG_Ks @ 41c5c80a10c8 / matlab_parameter_fitting / square_error.m

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

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