Location: BG_funny @ 555927df62a1 / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-03-08 11:33:45+13:00
Desc:
Fixing znames
Permanent Source URI:
https://models.cellml.org/workspace/838/rawfile/555927df62a13fe0ca207a420fcc3f542985d949/matlab_parameter_fitting/square_error.m

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