Location: BG_Kr @ 8728af65931b / matlab_parameter_finding / calcT.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-03-29 09:00:14+13:00
Desc:
Fixing units in cellml, and therefore channel density
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82c/rawfile/8728af65931b5ca7821acc7c86f9c9bb021087b8/matlab_parameter_finding/calcT.m

function T = calcT(I_vec,num_rows)
num_cols = length(I_vec);
T = zeros(num_rows,num_cols);
for i = 1:num_cols
    T(I_vec(i),i) = 1;
end
end