Location: BG_Na_background @ 4e37e053bf80 / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <sfon036@UoA.auckland.ac.nz>
Date:
2024-11-08 11:33:15+13:00
Desc:
Adding exposure files and fixing cellml
Permanent Source URI:
https://models.cellml.org/workspace/82b/rawfile/4e37e053bf80a5eda4b9d523b59348e9bc21db47/matlab_parameter_fitting/square_error.m

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