Location: BG_Kr @ 4945aae885e1 / matlab_parameter_finding / calcT.m

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-03-14 16:07:11+13:00
Desc:
rename folder
Permanent Source URI:
https://staging.physiomeproject.org/workspace/82c/rawfile/4945aae885e146525d9aa58580b3a20cbf8caef5/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