Location: cellLib @ be4db1cb7bdb / BG_fit / readMatrices.m

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-08-29 15:22:53+12:00
Desc:
Remove q and its ode in Se_BG
Permanent Source URI:
https://models.physiomeproject.org/workspace/6bc/rawfile/be4db1cb7bdb17d9500fe90012ba8759b0ee41e9/BG_fit/readMatrices.m

%% Read stoichiometric matrices
function [Kname,CompType,kappa_name,ReType,N_f,N_r]=readMatrices(fmaxtrixf,fmaxtrixr)
indexT=1;
indexN=2;
[N_f,txt,~] = xlsread(fmaxtrixf);
kappa_name=convertCharsToStrings(txt(indexN,indexN+1:end)');
ReType=convertCharsToStrings(txt(indexT,indexN+1:end)');
Kname=convertCharsToStrings(txt(indexN+1:end,indexN));
CompType=convertCharsToStrings(txt(indexN+1:end,indexT)); % Component type
[N_r,~,~] = xlsread(fmaxtrixr);
end