Location: BG_fast_Na @ 24ac1a74f00d / matlab_parameter_fitting / square_error.m

Author:
Shelley Fong <sfon036@UoA.auckland.ac.nz>
Date:
2024-11-29 11:52:29+13:00
Desc:
Adding svg
Permanent Source URI:
https://staging.physiomeproject.org/workspace/826/rawfile/24ac1a74f00d8e881a4f4048d338b8040eef839f/matlab_parameter_fitting/square_error.m

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