Location: cellLib @ 0dac5431120e / BG_fit / square_error.m

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-04-14 19:01:18+12:00
Desc:
Add readComp to create comp from the existing model file; correct updataVIO; modelValidation.py for validating model using cellML2.0 lib txt2cellml.psl for convert .txt files to .cellml files
Permanent Source URI:
https://models.cellml.org/workspace/6bc/rawfile/0dac5431120e7f9a1629e94034b7751917919b43/BG_fit/square_error.m

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