Location: cellLib @ 5e8d538138f0 / BG_fit / square_error.m

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-02-14 15:32:58+13:00
Desc:
Modify the channelX_BG to incoporate the 0 nodes; Correct the 0:s4 equation in the gate_n4_BG
Permanent Source URI:
https://models.cellml.org/workspace/6bc/rawfile/5e8d538138f05b359a7bc5908ea976ff4ff49ae2/BG_fit/square_error.m

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